GEROSTATS STATISTICS LAB
================================

This teaching package follows 720 synthetic adults aged 65–96 for six months.
It contains no real patients, no personal data and no clinical records.

COMMON DATA
-----------
gerostats_medication_review_cohort.csv
  The software-neutral dataset used by Stata, SPSS and R.

gerostats_medication_review_cohort.xlsx
  A human-readable workbook with Read me, Teaching summary, Cohort data and
  Codebook sheets.

gerostats_medication_review_codebook.csv
  Variable meanings, roles, types, valid values and missing-value conventions.

COMPLETE ANALYSIS FILES
-----------------------
gerostats_medical_statistics_stata.do
gerostats_medical_statistics_spss.sps
gerostats_medical_statistics_r.R

R PROJECT
---------
Gerostats-Statistics-Lab.Rproj
  Opens a clean RStudio Project with workspace saving disabled.

HOW TO USE THE PACKAGE
----------------------
1. Keep the CSV and your chosen syntax file in the same folder.
2. Open the syntax file in Stata's Do-file Editor, SPSS's Syntax Editor or
   RStudio's Source pane.
3. Run one numbered section at a time.
4. Read the matching Statistics Lab page on gerostats.co.uk.

TEACHING DESIGN
---------------
The medication review is observational rather than randomised. Age, living
arrangement, deprivation, medication count, baseline frailty and baseline
disability can affect review allocation and later outcomes, so crude and
adjusted results differ. This is intentional: it creates a realistic worked
example of confounding without making a clinical claim.

IMPORTANT
---------
These simulated data and results are for statistical education only. They must
not be used for clinical decisions, service evaluation or research findings.

Generation seed: 20260724
