SAS vs R for Clinical Programming — 26-Day Series

Learn R the way SAS programmers think — same clinical examples, side by side, every day.

Practice tests for GOT's 26-day SAS vs R series. Each day pairs a SAS topic with its R equivalent — libraries, imports, functions, merges, loops, PROC MEANS, FREQ, REPORT, TABULATE, TRANSPOSE, SQL, graphs and macros — using one CDISC-style study (DM, AE, ADSL, ADAE, ADVS). MCQs, SAS + R coding challenges and interview questions.

  1. Day 1: Getting Started — SAS vs R — Workspace, first program, and the beginner rules that cause most errors
  2. Day 2: Libraries and PROC CONTENTS — SAS vs R — Save, read back and inspect clinical datasets in SAS and R
  3. Day 3: Reading Raw Data and Formats — SAS vs R — INFILE and INPUT vs readr: read raw files, missing values and formats
  4. Day 4: System Options and PROC FORMAT — SAS vs R — Titles, options, log control and value labels in SAS and R
  5. Day 5: Dataset Options and the SET Statement — SAS vs R — KEEP, RENAME, WHERE and SET vs select, filter and bind_rows
  6. Day 6: PROC IMPORT — SAS vs R — Read Excel, CSV, delimited and XPT files the same way in SAS and R
  7. Day 7: PROC EXPORT — SAS vs R — Export CSV, delimited, Excel and FDA XPT files in SAS and R
  8. Day 8: Numeric Functions — SAS vs R — Round, transform and sum numbers so SAS and R outputs match
  9. Day 9: Character Functions — SAS vs R — Clean, search, join and split clinical text in SAS and R
  10. Day 10: PROC PRINT and PROC SORT — SAS vs R — Print listings, sort data and remove duplicates in SAS and in R
  11. Day 11: Merging Datasets — SAS vs R — MERGE with BY and IN= flags vs dplyr joins, plus the classic traps
  12. Day 12: Conditions and Operators — SAS vs R — IF-THEN-ELSE, SELECT-WHEN and operators vs case_when and filter
  13. Day 13: Loops — SAS vs R — DO, DO WHILE, DO UNTIL and macro %DO vs R for, while, repeat and map
  14. Day 14: Arrays and RETAIN — SAS vs R — Arrays, DO loops, RETAIN and LOCF compared with across, cumsum and fill
  15. Day 15: PROC MEANS — SAS vs R — Match PROC MEANS stats in R: N, NMISS, quartiles, CLM and totals
  16. Day 16: PROC FREQ — SAS vs R — Counts, percents, missing values, zero cells and chi-square tests
  17. Day 17: PROC REPORT Basics — SAS vs R — Build clinical listings with PROC REPORT and flextable side by side
  18. Day 18: PROC REPORT Advanced — SAS vs R — Computed columns, across, totals and styling in SAS and R
  19. Day 19: PROC TABULATE — SAS vs R — Build clinical summary tables with TABULATE and dplyr pivots
  20. Day 20: ODS and Output Files — SAS vs R — ODS RTF, Excel, Word and ODS OUTPUT versus flextable and broom
  21. Day 21: Graphs — SAS vs R — PROC SGPLOT and GCHART vs ggplot2 for clinical bar and line charts
  22. Day 22: PROC TRANSPOSE — SAS vs R — Reshape clinical data long to wide and back with SAS and tidyr
  23. Day 23: PROC SQL Basics — SAS vs R — Single-table SQL queries in SAS, dplyr and sqldf, with missing traps
  24. Day 24: SQL Joins and Set Operators — SAS vs R — PROC SQL joins, COALESCE, IN subqueries and UNION vs dplyr joins
  25. Day 25: Macro Variables — SAS vs R — %LET, SYMPUTX, INTO: and %SYSFUNC versus plain R variables
  26. Day 26: Macro Programs — SAS vs R — Write reusable SAS macros and R functions for clinical tables