# Analysis scripts — study 001

Run from the study folder (`docs/research/001-household-money-time`). Requires Python 3 and `openpyxl`. `<raw>` is a folder containing the unzipped ABS file `Time-Use-Survey-data-2024.zip` (check its SHA-256 in `../data-dictionary.md`).

| Order | Command | Produces |
| --- | --- | --- |
| 1 | `python -I analysis/extract_tus2024.py <raw> data` | `data/tus2024_long.csv`, `data/tus2024_sheets.csv` |
| 2 | `python -I analysis/validate_tus2024.py data` | validation report (copy into `data/VALIDATION.md`) |
| 3 | `python -I analysis/build_report.py .` | `outputs/tables/`, `outputs/figures/`, `outputs/report-tables.md`, `claims.csv` |
| 4 | `python -I analysis/check_claims.py . <raw>` | `outputs/claims-check.md` |
| 5 | `python -I analysis/check_report.py .` | `outputs/report-check.md` (every number in `report.md` traced to a claim) |

`svg_charts.py` is a helper used by `build_report.py`. Step 3 overwrites `claims.csv`: record reviewer names and dates only after the claims are final, or re-apply them after a rebuild.
