{"args":{"cluster":"sid","controls":[],"dataset":"castle","fe":["sid","year"],"weights":null,"x":["cdl"],"y":"l_homicide"},"checks":[{"abs_tol":6.689912458805552e-08,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"coef.cdl","kind":"figure_close","min_lre":null,"note":"software reference","open_interval":false,"rel_tol":1e-06,"required":true,"source_id":"cheng_hoekstra_2013.tab5_pb_c1.software","table":null,"tool":"infer.ols","value":0.08770138490539588,"weight":1.0,"where":null},{"abs_tol":6.689912458805552e-08,"bind":"any","column":null,"failure_class":null,"field":"se","interval":false,"key":"coef.cdl","kind":"figure_close","min_lre":null,"note":"software reference, SE","open_interval":false,"rel_tol":1e-06,"required":true,"source_id":"cheng_hoekstra_2013.tab5_pb_c1.software","table":null,"tool":"infer.ols","value":0.06689912458805553,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"coef.cdl","kind":"figure_close","min_lre":null,"note":"published cell","open_interval":false,"rel_tol":null,"required":true,"source_id":"cheng_hoekstra_2013.tab5_pb_c1.paper","table":null,"tool":"infer.ols","value":0.0877,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"se","interval":false,"key":"coef.cdl","kind":"figure_close","min_lre":null,"note":"published cell, SE (known deviation: se_convention)","open_interval":false,"rel_tol":null,"required":false,"source_id":"cheng_hoekstra_2013.tab5_pb_c1.paper","table":null,"tool":"infer.ols","value":0.0638,"weight":1.0,"where":null}],"datasets":{"castle":{"columns":null,"description":"The state-year panel of Cheng and Hoekstra (2013), 'Does Strengthening Self-Defense Law Deter Crime or Escalate Violence? Evidence from Expansions to Castle Doctrine', as distributed with Cunningham's Causal Inference: The Mixtape: one row per U.S. state and year, 2000-2010 (550 rows: 50 states, 11 years). Columns used most: state, the state's name; sid, a numeric state id; year; cdl, the castle doctrine law variable as the paper codes it: the fraction of the year in which the state's castle doctrine (stand-your-ground) law was in effect, 0 before adoption and 1 in full years after it; post, 1 in every year from the adoption year on (any part of the year); effyear and treatment_date, the year the law took effect (missing for states that never adopted one); homicide, the homicide rate per 100,000 residents (FBI Uniform Crime Reports), and l_homicide its natural log; murder and l_murder, the murder rate and its log; population; popwt, the state's average population over 2000-2010 (constant within a state), the weight the paper's weighted regressions use; northeast, midwest, south, west, census region indicators; r20001 to r20104, region-by-year indicators named r20<two-digit year><region 1-4> (for example r20063 is region 3 in 2006); trend_1 to trend_51, state-specific linear trends; lead1 to lead9 and lag0 to lag5, event-time indicators relative to adoption; other crime rates (robbery, assault, burglary, larceny, motor) and their logs (l_robbery and so on); and the time-varying controls of the paper (police, unemployrt, income, poverty, prisoner, lagprisoner, exp_subsidy, exp_pubwelfare, and the shares of black and white men aged 15-24 and 25-44).","file_sha256":"804633c161827b6c0824f86f239046386d1a8266a866f83bf5ddb2aa762a5f29","format":"dta","frame_sha256":null,"generator":null,"kind":"file","licence":"No licence stated (Mixtape repository); fetched, not redistributed.","member":null,"object":null,"params":{},"path":null,"read_kw":{},"records":null,"role":"agent","sha256":"804633c161827b6c0824f86f239046386d1a8266a866f83bf5ddb2aa762a5f29","transforms":[],"url":"https://raw.githubusercontent.com/scunning1975/mixtape/9471dd0c45477386bf208516882895af340f3d33/castle.dta"}},"difficulty":"E","id":"paper_repro.cheng_hoekstra_2013.tab5_pb_c1.tool","level":"T1","meta":{"acceptable_tools":["infer.ols"],"cluster":"cheng_hoekstra_2013","contamination":{"benchmark_first_public":"2012-06","gold_in_public_repo":true,"model_reported_cutoff":null,"url":"https://doi.org/10.3386/w18134"},"expected_tool":"infer.ols","family":"did","kind":"tool","known_deviation":{"evidence":"Found in the software-reference run (scripts/paper_repro_reference.py, statsmodels 0.15.0, 2026-10-15), before the MAGI tool ran on this target: the declared specification (state and year effects as dummies, unweighted, CR1 clustered by state counting the dummies in K) gives an SE of 0.0669 against the printed 0.0638, the same ratio of about sqrt((N-k)/(N-K)) (k: the regressors left after absorbing the state effects, as Stata xtreg, fe counts them; K: the full dummy count) as Panel A, while the coefficient matches the printed one: the authors' clustered errors do not count the state effects, nested in the clusters, in K (Stata xtreg, fe). The reference keeps the declared convention; the printed cell is recorded and non-required on T1.","fields":["se"],"found_in_run":true,"kind":"se_convention"},"locator":"NBER Working Paper 18134, Table 5, Panel B 'Log Homicide Rate (OLS - Unweighted)', column (1) state and year fixed effects, row 'Castle Doctrine Law'","n_published":550,"paper":"cheng_hoekstra_2013","se_policy":{"basis":"Table 5 notes: 'Robust standard errors are clustered at the state level'. The authors' code is not public.","convention":"cluster-robust by state, CR1 (G/(G-1)\u00b7(N-1)/(N-K)) with the state and year fixed effects counted in K as dummies (infer.ols)","never_required":false,"stated_in_question":false},"target":"tab5_pb_c1","trap_tools":[]},"question":"","requires":[],"runner":null,"sources":["cheng_hoekstra_2013.tab5_pb_c1.paper","cheng_hoekstra_2013.tab5_pb_c1.software"],"split":"public","suite":"paper_repro","tags":["paper_repro","cheng_hoekstra_2013","did"],"target":"tool","tool":"infer.ols","truth":"Cheng, C. and Hoekstra, M. (2013). Does Strengthening Self-Defense Law Deter Crime or Escalate Violence? Evidence from Expansions to Castle Doctrine. Journal of Human Resources 48(3): 821-854. Cells read from the NBER Working Paper 18134 (June 2012). NBER Working Paper 18134, Table 5, Panel B 'Log Homicide Rate (OLS - Unweighted)', column (1) state and year fixed effects, row 'Castle Doctrine Law' (source cheng_hoekstra_2013.tab5_pb_c1.paper); software reference cheng_hoekstra_2013.tab5_pb_c1.software: statsmodels 0.15.0: the reference specification of cheng_hoekstra_2013 tab5_pb_c1 (infer.ols, figure 'coef.cdl') on an independent code path"}