Add diagnostics report workflow

This commit is contained in:
aseimel
2026-06-15 16:33:19 +02:00
parent 91403e2bdf
commit bc2d616605
24 changed files with 7896 additions and 0 deletions
+9
View File
@@ -10,6 +10,7 @@ Code and processed model inputs for generating two-dimensional party-position es
- `data/` — five processed party-level inputs used by the Julia/Stan model.
- `metadata/` — data dictionary and source-support documentation.
- `docs/` — raw data source documentation, coding decisions, and operational notes.
- `diagnostics/` — repository diagnostics report regenerated after model estimation.
Processed inputs needed by the model are included in `data/` so the estimation step can be reproduced from the model-ready data.
@@ -80,6 +81,14 @@ To check the local setup without fitting the model, run:
bash run_estimation.sh dry-run
```
After estimation and validation have been run, regenerate the diagnostics report with:
```bash
Rscript diagnostics/generate_diagnostics.R
```
The report is written to `diagnostics/generated/diagnostics_report.md` and copied to `data/releases/party_2d_diagnostics_report_v0.md`.
## Data inputs
The model-ready inputs are included under `data/`: