Review ask
As a clinical trial statistician or programmer, challenge anything in this benchmark: describe a problem in Comments, or propose a fix with the Edit button on any source file.
- Task: Would a real study need this derivation, specified this way? Does it follow CDISC ADaM: variable names, controlled terms, record structure? Flag any rule that is ambiguous or that a sponsor would handle differently.
- Inputs: Do they look like data collected in a real trial, and do they include the situations you would expect to meet in one?
- Expected output: Would independent QC programming reproduce every value from these inputs and rules?
The other tabs beside Comments are background for assessment, not under review.
Summary
README.mdGoal: apply CEIL, FLOOR, TRUNC, EXP, MOD,
GREATEST, LEAST, and COALESCE to carried values.
Input: subject-level records carrying AVAL as a decimal
number and BVAL and CVAL as whole numbers, each copied to the
output unchanged (a blank stays blank).
Variables:
CEILVALholds the smallest whole number at or aboveAVAL; blank whenAVALis blank.FLOORVALholds the largest whole number at or belowAVAL; blank whenAVALis blank.TRUNCVALholdsAVALwith its fraction cut away toward zero, so a negative value with a fraction moves up, not down; blank whenAVALis blank.EXPVALholds the constant e raised toAVAL; blank whenAVALis blank.MODVALholds the remainder ofBVALdivided by three, with the sign ofBVAL; blank whenBVALis blank.GREATESTVALholds the largest amongBVAL,CVAL, and zero, skipping blanks; the zero means it is never blank.LEASTVALholds the smallest amongBVAL,CVAL, and zero, skipping blanks; the zero means it is never blank.COALESCEVALholdsCVALwhen present and otherwiseBVAL; blank when both are blank.
Note: a blank input gives a blank result, except that the largest-or-smallest choice skips blanks and the first-present choice moves to the next value.
Inputs
Under review1 source fileinput/adsl.csv
Edit5 rows| STUDYID | USUBJID | AVAL | BVAL | CVAL |
|---|---|---|---|---|
| CATH | 2.3 | 7 | 5 | |
| CATH | -2.7 | -7 | — | |
| CATH | 2.0 | 10 | 3 | |
| CATH | — | 5 | 8 | |
| CATH | 0.5 | — | — |
Expected output
Under review5 expected rowsexpected/adsl.csv
Edit5 rows| STUDYID | USUBJID | AVAL | BVAL | CVAL | CEILVAL | FLOORVAL | TRUNCVAL | EXPVAL | MODVAL | GREATESTVAL | LEASTVAL | COALESCEVAL |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CATH | 2.3 | 7 | 5 | 3 | 2 | 2 | 9.974182454814718 | 1 | 7 | 0 | 5 | |
| CATH | -2.7 | -7 | — | -2 | -3 | -2 | 0.06720551273974976 | -1 | 0 | -7 | -7 | |
| CATH | 2 | 10 | 3 | 2 | 2 | 2 | 7.38905609893065 | 1 | 10 | 0 | 3 | |
| CATH | — | 5 | 8 | — | — | — | — | 2 | 8 | 0 | 8 | |
| CATH | 0.5 | — | — | 1 | 0 | 0 | 1.6487212707001282 | — | 0 | 0 | — |
Shaded columns are derived— = missing value
Comments and assessment materials
Not under review
| Dataset Name | Variable Name | Variable Label | Type | Codelist/Controlled Terms | Core | Computational Method | Origin |
|---|---|---|---|---|---|---|---|
| ADSL | STUDYID | Study Identifier | character | Copy value from SOURCE.STUDYID. | Predecessor | ||
| ADSL | USUBJID | Unique Subject Identifier | character | Copy value from SOURCE.USUBJID. | Predecessor | ||
| ADSL | AVAL | Analysis Value | numeric | Copy value from SOURCE.AVAL. | Predecessor | ||
| ADSL | BVAL | Secondary Analysis Value | numeric | Copy value from SOURCE.BVAL. | Predecessor | ||
| ADSL | CVAL | Tertiary Analysis Value | numeric | Copy value from SOURCE.CVAL. | Predecessor | ||
| ADSL | CEILVAL | Ceiling of Analysis Value | numeric | Compute CEIL(AVAL). | Derived | ||
| ADSL | FLOORVAL | Floor of Analysis Value | numeric | Compute FLOOR(AVAL). | Derived | ||
| ADSL | TRUNCVAL | Truncation of Analysis Value | numeric | Compute TRUNC(AVAL). | Derived | ||
| ADSL | EXPVAL | Exponential of Analysis Value | numeric | Compute EXP(AVAL). | Derived | ||
| ADSL | MODVAL | Remainder of Secondary Value Divided by Three | numeric | Compute MOD(BVAL, 3). | Derived | ||
| ADSL | GREATESTVAL | Largest of Secondary, Tertiary, and Zero | numeric | Compute GREATEST(BVAL, CVAL, 0). | Derived | ||
| ADSL | LEASTVAL | Smallest of Secondary, Tertiary, and Zero | numeric | Compute LEAST(BVAL, CVAL, 0). | Derived | ||
| ADSL | COALESCEVAL | First Present Value Among Tertiary and Secondary | numeric | Compute COALESCE(CVAL, BVAL). | Derived |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.3 | 2026-09-29 | yamaa docs build | Show study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata | ||
| 1.2 | 2026-09-29 | yamaa docs build | Classify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived | ||
| 1.1 | 2026-09-29 | yamaa docs build | Resolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML | ||
| 1.0 | yamaa docs build | Initial generation from spec.yaml |
yamaa
Comments
Signed in with GitHub; saved in repository Discussions