r-training-exercises-for-sas-programmers: files r_exercises_worksheet.docx Six exercises with hints and checks, plus instructor notes (what happened when the solutions were run). ex1 ... ex6_solution_as_written.R The model solutions, unedited, one per exercise. ex5_solution_as_written.R WRONG on purpose: treatment codes 0/1/2, data hold 0/54/81. Runs without error, returns p = 1 twice. ex5_fixed_TRTAN_54_81.R The two-number fix. p = 0.243 and 0.494. recompute_reference.R Reference counts from the data, not AI code. *_output.txt files Console output from a re-run with R 4.6.1 on 2026-10-24 (workflow page, under Scripts and full run). The scripts read the public CDISC SDTM/ADaM pilot project files (study CDISCPILOT01). The data are not included. Download the unmodified .xpt files from https://github.com/cdisc-org/sdtm-adam-pilot-project (folder updated-pilot-submission-package/900172/m5/) and put them in one folder. Credit: CDISC; used under the terms in the repository README. Run: Rscript