Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closes #98: align SAS rounding and update the calculation for ADSL.DURDIS #99

Merged
merged 11 commits into from
Apr 28, 2023

Conversation

kaz462
Copy link
Collaborator

@kaz462 kaz462 commented Apr 21, 2023

Added round_sas function and updated round to round_sas

  • differences when using round:

image

  • round_sas

image

@kaz462
Copy link
Collaborator Author

kaz462 commented Apr 24, 2023

The DURDIS differences are not from rounding, but from the way duration is calculated (details in pharmaverse/admiral#1875)

Discrepancies are resolved by updating derive_vars_duration(..., out_unit = "months") to "days", and dividing it by 365.25/12

Remaining diff (due to original CDISC data):
image

@kaz462 kaz462 changed the title Closes #98: align SAS rounding Closes #98: align SAS rounding and update the calculation for ADSL.DURDIS Apr 24, 2023
Copy link

@DeclanHodges DeclanHodges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kaz462,
Good spot with the DURDIS discrepancy! Thanks for updating the code. Just one comment from me (see below).

Copy link
Collaborator

@laxamanaj laxamanaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kaz462 and @DeclanHodges for updating and reviewing.

@laxamanaj laxamanaj merged commit 876d011 into main Apr 28, 2023
@laxamanaj laxamanaj deleted the 98_sas_rounding branch April 28, 2023 17:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve discrepancies in ADSL: align SAS rounding and update the calculation for ADSL.DURDIS
3 participants