Restore source downloader in R
This commit is contained in:
@@ -4,7 +4,7 @@ Code and processed model inputs for generating two-dimensional party-position es
|
||||
|
||||
## Repository contents
|
||||
|
||||
- `data-setup/` — source-file checks and rebuild workflow for raw files that cannot be redistributed here.
|
||||
- `data-setup/` — source download, source-file checks, and rebuild workflow for raw files that cannot be redistributed here.
|
||||
- `src/julia/` — Stan data preparation, model fitting, post-estimation, enrichment, and validation.
|
||||
- `models/` — Stan model specification.
|
||||
- `data/` — five processed party-level inputs used by the Julia/Stan model.
|
||||
@@ -20,9 +20,9 @@ Processed inputs needed by the model are included in `data/` so the estimation s
|
||||
The public repository does **not** contain the original raw/source files. Several inputs are third-party datasets with their own terms of use, and the Morgan historical file is a local OCR/transcription source. Instead, this repository provides:
|
||||
|
||||
1. committed model-ready inputs in `data/`, sufficient for fitting the Julia/Stan model; and
|
||||
2. `data-setup/`, a workflow that downloads or checks raw sources and rebuilds comparable model-ready inputs locally.
|
||||
2. `data-setup/`, an R/Shell workflow that downloads script-accessible sources, checks locally supplied raw sources, and rebuilds comparable model-ready inputs locally.
|
||||
|
||||
`data-setup/` documents the required source files and checks locally supplied sources for:
|
||||
`data-setup/` downloads script-accessible sources and checks locally supplied sources for:
|
||||
|
||||
- PolDem
|
||||
- PartyFacts crosswalk
|
||||
@@ -44,7 +44,7 @@ Run the full source-data setup workflow with:
|
||||
bash data-setup/run_data_setup.sh
|
||||
```
|
||||
|
||||
This checks required local files, rebuilds model-ready inputs locally, and writes a comparison report. Manifesto Project requires your own provider access, and the Morgan OCR/transcription file can be provided on request.
|
||||
This downloads script-accessible source files, checks required local files, rebuilds model-ready inputs locally, and writes a comparison report. Manifesto Project requires your own provider access, and the Morgan OCR/transcription file can be provided on request.
|
||||
|
||||
## Running the pipeline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user