The cell you edit: analyze.py, as it ran at E0009

The whole mutable surface is one file, and a cell only chooses: which estimator, which propensity specification, how many bootstrap draws. The library computes. Because the notary restores the file after every registered cell, the listing below is the file as the sealed AIPW cell (E0009) executed it, read from that run's recorded candidate commit, not whatever is on disk now. Its CELL block reads AIPW with the PSID-1 specification, the one selected on development.


Three things in it are worth stealing. The lane is read from the data (comparison["sample"]) rather than passed in, so the same cell runs on PSID-1 and, sealed, on CPS-1 without an edit. The reproduction branch computes the registered targets and also never-counted diagnostic rows that show which published column each value matches. And the att branch pins its table with an artifact: line and prints the point, the bootstrap range and the gap-bearing extras (att_gap_usd, n_controls_used, max_weight_share) so the notary can adjudicate predictions on the printed block. The reproduction cell as it ran at E0001 differs only in CELL, which the reproduction track ignores:



The estimator library

The estimators live outside the mutable surface on purpose, so a cell's diff can never be "changed the estimator". Note the design choices: an unpenalised logit on standardised columns (a logit is invariant to rescaling), common support applied to comparison men only so the estimand stays the ATT over all 185 trainees, weight-concentration reported with every estimate, and a bootstrap that re-fits the score in each draw with a fixed seed.


No verifier script is declared for this study. The checker is the benchmark itself: the gap is computed in the same run from the experimental controls, and the registered rules read only that gap.

Analysis-pipeline advice, in order

  1. Name the estimand and get a benchmark if one exists at all: a randomised arm, a pilot, a known-null placebo outcome. Without the answer key nothing above could be judged.
  2. Cross-read every printed target against the paper's other tables before registering a replication (claim C14). Here that explained both reproduction refutations before any cell ran, so the anchor's STOP rule could tell a known inconsistency in the paper from a broken pipeline. Put the cross-reads in the cell as never-counted diagnostic rows.
  3. Print the weight-concentration pair with every weighting or matching estimate, the largest single weight share and the number of comparison units used, and read it before the point estimate (claim C15).
  4. Run more than one estimator on the same score and read the spread as uncertainty (claim C31).
  5. Write sensitivity predictions against the baseline cell, not the benchmark band (claim C13), and when a cell drops a covariate, drop only that covariate's terms and hold the support fixed, or report the support change beside the shift (claim C22).
  6. Say what your interval covers (claim C17). A bootstrap that re-fits the score but holds the experimental controls fixed is an interval for the estimate, not the gap, and for matching it is descriptive only. Treat a registered selection among estimators as a tie-break, not a ranking (claim C24).
  7. Call a same-seed re-run determinism (claim C27). The exact re-executions here show the pipeline is deterministic; they say nothing about robustness to other code, seeds or specifications.

War stories that bit this study