Documentation

22.31 Output files and the covariate evidence bundle

The output directory is a complete selection record. Archive it as a unit.

The covariate output bundle

equations.csv lists every form tried, equation text, degrees of freedom, estimates, refit evidence or selection probabilities, chosen form, and classification. candidate_results.csv/JSON contains score, conditional, refit, uncertainty, step, and classification detail. covariate_summary.csv provides a concise result table.

selection_trace.csv records forward/backward decisions and refit tests. frozen_refits.json and posterior_refits.json cache expensive model sets for reuse/resume. numerical_diagnostics.json preserves stationarity, information, repairs, and numerical evidence.

draft_model.ctl codes retained effects in the base control stream. draft_covariate_block.txt provides pasteable statements. Both are labeled unconfirmed and require refitting/review.

report.md and report.html combine final model, decisions, equations, evidence, and trace. normalized_config.covar writes detected types, references, forms, levels, and resolved settings. input_manifest.json, log, and checksums.sha256 establish provenance and integrity.

Schemas differ by method because frozen/SCM report p-values and refits while posterior reports probabilities and stability. Downstream scripts should validate columns/version rather than assuming one universal table.

A defensible archive procedure

At completion, verify checksums.sha256, copy the entire output directory to controlled storage, and record the executable version, operating system, command transcript, configuration, source input hashes, start/end times, and reviewer. Use CSV/JSON artifacts for automated comparison and the rendered report for human review. Retain failed candidates and numerical warnings because they explain the reachable selection path. A cache is useful for exact compatible resume, but it is not a substitute for original inputs or a portable scientific result. If any artifact is regenerated, create a new bundle or clearly document the replacement and refresh integrity records; do not silently mix files from separate runs.

Common mistakes

  • Copying only the draft model and discarding evidence.
  • Parsing the rendered report instead of CSV/JSON.
  • Treating refit caches as portable without identity checks.
  • Assuming schemas are identical across methods/versions.
  • Calling checksums proof of scientific correctness.

Checklist

  • Verify every expected artifact and checksum.
  • Use CSV/JSON for computation.
  • Preserve reports, caches, config, manifest, and logs.
  • Version downstream schema assumptions.
  • Keep the unconfirmed label through handoff.

Further reading

Continue with draft model coding, the worked example, and Chapter 38 output reference when drafted.