As a clinical trial statistician or programmer, answer two short questions in Your review: the task and the inputs and outputs. Agreeing with both approves this benchmark; disagreeing with either needs a comment. Propose a fix with the Edit button on any source file, or add it to your comments.
We suggest spending no more than 5 minutes on a review. The other tabs beside Your review are background for assessment, not under review.
Summary
README.mdPublic entries: Python and R. Passing coverage requires an installed inventory.
Goal: apply CEIL, FLOOR, TRUNC, EXP, and MOD to
carried values, and choose the largest, the smallest, and the first
present of the carried whole numbers.
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 | — |
Human review and assessment
| 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 | Greatest of BVAL, CVAL and ZERO. | Derived | ||
| ADSL | LEASTVAL | Smallest of Secondary, Tertiary, and Zero | numeric | Least of BVAL, CVAL and ZERO. | Derived | ||
| ADSL | COALESCEVAL | First Present Value Among Tertiary and Secondary | numeric | First non-missing of CVAL and BVAL. | Derived |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.7 | 2026-10-20 | yamaa docs build | Read a specification in the 1.0 surface as its 0.5 counterpart; state that missing values stay missing where a mapping declares no missing handler, and leave out a declared missing answer that restates a handler's default | ||
| 1.6 | 2026-10-17 | yamaa docs build | Describe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight | ||
| 1.5 | 2026-10-17 | yamaa docs build | Name collected precision in words instead of letter codes; state imputation fallbacks, minimum source precision, bounds ignored outside the collected period, and invalid text with no handler as an error; describe date and datetime shifts, imputation flag codes, and partial text giving no date part | ||
| 1.4 | 2026-10-15 | yamaa docs build | State datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks | ||
| 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