23.36 Output files and audit bundle
Archive the entire frozen output directory. The bundle links numerical evidence, decisions, model code, and provenance.
candidate_results.csv/JSON holds raw/adjusted/calibrated p-values, score statistics, degrees of freedom, one-step and conditional estimates, uncertainty summaries, refit results, classification, reasons, and warnings. equations.csv records forms and equation-selection evidence. selection_trace.csv preserves the ordered path. covariate_summary.csv documents analyzed distributions and missingness.
numerical_diagnostics.json stores stationarity and matrix diagnostics. With --write-subject-scores, subject contributions are written; with --write-matrices, matrix JSON files expose raw and efficient blocks. frozen_refits.json caches likelihood refits. draft_model.ctl and draft_covariate_block.txt provide unconfirmed model code.
report.md/HTML presents human-readable interpretation. normalized_config.covar, input_manifest.json, command/log files, and checksums.sha256 establish reproducibility and integrity. Checksums detect file changes; they do not establish scientific correctness.
Schemas can evolve. Downstream tools should check engine version and columns rather than scraping rendered reports.
Suggested review order
Start with the transcript and input manifest to confirm that the intended run family and settings were used. Read numerical_diagnostics.json before looking at retained labels, because a failed or unstable matrix changes what can be interpreted. Next follow selection_trace.csv from the univariate pass through forward and backward decisions. Reconcile every final label with its row in candidate_results.csv, then compare one-step, refined, and joint-refit coefficients. Review the equation table and generated model code last, after the selection evidence is understood. This order prevents a polished draft model from overshadowing warnings or an incomplete path.
The four successful teaching bundles contain 50 checksum entries, all verified during chapter construction. The observed-Hessian boundary run has only its failure transcript and command because it correctly stopped before producing a complete bundle.
Common mistakes
- Keeping only the draft model or report.
- Parsing HTML when CSV/JSON exists.
- Discarding failed-run transcripts.
- Assuming a cache is portable across inputs.
- Calling checksum verification model validation.
Checklist
- Verify all recorded checksums.
- Preserve machine-readable and rendered evidence together.
- Protect subject-level files appropriately.
- Version downstream schema expectations.
- Store failed sensitivities beside successful runs with clear labels.
Further reading
See the Chapter 23 results directory, Chapter 22 output guide, and Chapter 38 when drafted.