Practice calculation without confusing computation and inference. The conceptual lessons can be completed without writing code.
Math pathway and R scripts
Eight base R verification scripts and worked examples.
Data dictionary
| Field | Meaning | Caution |
|---|---|---|
| id | Fictional person identifier | Do not average identifiers |
| group | A, B, C observational labels | Not randomised treatments |
| study_hours | Reported study hours | Self-report bias is plausible |
| score_pre | Score before | Paired with score_post by id |
| score_post | Score after | Not evidence of causal treatment |
| preference | Visual or Text category | Categorical outcome |
| stress_rating | Ordinal 1–5 stress score | Three entries missing |
How to run the labs
- Download the CSV and the desired .R script into the same local folder.
- Open RStudio; set the working directory to that folder or use an RStudio Project.
- Open the downloaded script and choose Source, or run it line by line.
- Read every printed result together with the assumptions and the task prompt.
- Keep your interpretation separate from the code output.
No extra R packages, no private data, and no external APIs are needed. Runtime execution has not been verified in the user's RStudio; this guide does not claim such a test.
All downloadable labs
R Lab companion
If RStudio is new to you, use the existing R Lab lessons 1–6 for code, files, data frames, graphics and debugging.
R Lab →