{"args":{"cluster":"sid","controls":["r20001","r20002","r20003","r20004","r20011","r20012","r20013","r20014","r20021","r20022","r20023","r20024","r20031","r20032","r20033","r20034","r20041","r20042","r20043","r20044","r20051","r20052","r20053","r20054","r20061","r20062","r20063","r20064","r20071","r20072","r20073","r20074","r20081","r20082","r20083","r20084","r20091","r20092","r20093","r20094","r20101","r20102","r20103","r20104"],"dataset":"castle","fe":["sid","year"],"weights":null,"x":["cdl"],"y":"l_homicide"},"checks":[{"abs_tol":8.087017349667114e-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_c2.software","table":null,"tool":"infer.ols","value":0.08109024141547702,"weight":1.0,"where":null},{"abs_tol":8.087017349667114e-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_c2.software","table":null,"tool":"infer.ols","value":0.08087017349667114,"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_c2.paper","table":null,"tool":"infer.ols","value":0.0811,"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_c2.paper","table":null,"tool":"infer.ols","value":0.0769,"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_c2.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, year and region-by-year effects as dummies, unweighted, CR1 clustered by state counting the dummies in K) gives an SE of 0.0809 against the printed 0.0769, 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 (2) adding region-by-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, year and region-by-year effects counted in K as dummies (infer.ols)","never_required":false,"stated_in_question":false},"target":"tab5_pb_c2","trap_tools":[]},"question":"","requires":[],"runner":null,"sources":["cheng_hoekstra_2013.tab5_pb_c2.paper","cheng_hoekstra_2013.tab5_pb_c2.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 (2) adding region-by-year fixed effects, row 'Castle Doctrine Law' (source cheng_hoekstra_2013.tab5_pb_c2.paper); software reference cheng_hoekstra_2013.tab5_pb_c2.software: statsmodels 0.15.0: the reference specification of cheng_hoekstra_2013 tab5_pb_c2 (infer.ols, figure 'coef.cdl') on an independent code path"}