RConsortium / submissions-pilot3-adam

Development repo for pilot3 submission to FDA - ADaM
https://rconsortium.github.io/submissions-pilot3-adam/
GNU General Public License v3.0
16 stars 11 forks source link

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

Closed kaz462 closed 1 year ago

kaz462 commented 1 year ago

Added round_sas function and updated round to round_sas

image

image

kaz462 commented 1 year ago

The DURDIS differences are not from rounding, but from the way duration is calculated (details in https://github.com/pharmaverse/admiral/issues/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