ONLINE RESOURCE 2 — DATA AND CODE
Within group policy detail and predictive recovery in regional innovation assessment

This anonymous package supplies all tabular inputs used by the analysis, variable
and source documentation, executable code, numerical outputs and both figures.
Start with DATA_DOCUMENTATION.txt for provenance and exact file-to-table mapping.

Reproduce in a COPY: result and exported-view files are overwritten.
Python 3.10+; install dependencies with:
  python -m pip install -r requirements_figures.txt
Then run, in order:
  python verify_inputs.py
  python nested_analysis.py --repetitions 500
  python case_audit.py
  python audit_legacy.py
  python verify_results.py
  python make_figures.py
Numerical analysis requires only NumPy; plotting also requires Matplotlib.
No network, login, private data or spreadsheet software is needed after setup.
The 500-repetition simulation yields 84 summary and 42,000 method-replicate rows.
The tested environment is recorded in REPRODUCTION_REPORT.json. Numerical
differences at floating-point precision can occur across platforms.

To rerun historical analyses, extract legacy_v3.zip to a separate directory:
  python reproduce.py --out results
  python diagnostics.py --out diagnostics_results --repetitions 1000
Return to the primary directory and run audit_legacy.py for the archived Table S5.
Historical model names and loss thresholds differ; do not mix their conclusions.

Data sharing boundary: this is a secondary published-aggregate analysis. Original
policy texts and source-study coding sheets are not held in this reanalysis.
The linked original publications are not redistributed. The source-unit view is
an inverse unit conversion, not a newly acquired original raw file.

SHA256.json covers all distributed files except itself. Changes to generated files
after rerunning may change checksums while leaving numerical results equivalent.

verify_results.py independently checks every primary score and simulation summary
against the prediction and replicate records. Results: arithmetic_validation.json
in results/. It does not rerun model fitting or independently verify source tables.
