Add diagnostics report workflow
This commit is contained in:
@@ -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/`:
|
||||
|
||||
Reference in New Issue
Block a user