Data Analysis (crim-data-analysis)
Criminology reviewers are methodologically sophisticated and increasingly expect that your results
can be reproduced from deposited materials (see crim-data-and-transparency). Analyze as if both are
true. This skill covers execution and reporting norms; design decisions live in crim-research-design.
When to trigger
- Running main and supporting analyses; building the results section
- A reviewer asked for robustness, heterogeneity, or alternative specifications
- Fitting a trajectory model, fixed-effects panel, count model, or survival model
- Making the analysis reproducible before deposit
Analysis norms Criminology expects
- Report uncertainty honestly. Confidence/credible intervals, not just stars; the magnitude and
substantive meaning (e.g., incident-rate ratios, predicted counts, change in offending), not just
significance.
- Right model for crime data. Counts are over-dispersed and zero-heavy — prefer negative binomial /
zero-inflated / hurdle over OLS on raw counts; rates need exposure offsets; rare-event cautions apply.
- Within- vs. between-person. When the theory is developmental, isolate within-individual change
(fixed effects / hybrid models); do not interpret a between-person association as a life-course effect.
- Trajectory models with discipline. Report BIC across solutions, group shares, average posterior
probabilities (AvePP ≥ 0.7), and odds of correct classification; do not over-interpret the group count.
- Survival / recidivism. Handle right-censoring and competing risks; report the relevant hazard, not
just a binary "recidivated."
- Robustness that probes, not decorates. Show specs that could break the result (alternative crime
measures, samples, estimators, fixed effects) and say what you learn.
- Right inference. Cluster at the assignment/sampling level (often place or agency); randomization
inference for experiments; few-cluster corrections when clusters are sparse.
Crime-measurement specifics
- State whether the outcome is reported crime, victimization, or self-report, and how the dark figure,
reporting, and recording changes (e.g., UCR→NIBRS transition) could bias trends.
- Validate scales (self-report delinquency, legitimacy, collective efficacy); report reliability.
Reproducibility while you work (not at the end)
- One master script regenerates every table and figure from the (raw or constructed) data.
- Set and report seeds for bootstrap, randomization inference, EM-based trajectory fitting, simulation.
- Pin software/package versions (
renv.lock, requirements.txt, recorded ssc/net/traj installs).
- Keep table/figure numbers matched to script outputs; document restricted-data steps that others can't rerun.
Execution bridge (StatsPAI / Stata MCP)
Run the battery, don't just enumerate it. Full map:
execution-with-mcp. Criminology is observational — place/person panels where selection is pervasive; foreground DiD/IV/RDD and the selection objection.
- Many outcomes / specifications:
romano_wolf (step-down FWER) or
benjamini_hochberg — report the adjusted threshold.
- OVB sensitivity:
oster_delta / sensemakr.
- Inference:
wild_cluster_bootstrap (few clusters), twoway_cluster / conley;
multilevel data → cluster at the right level.
- Re-fit off one handle:
audit_result(result_id) lists the missing checks and the
exact suggest_function for each.
- Exhibits:
etable / did_summary_to_latex from the handle — no retyped numbers.
Keep the decisive checks in the body and the exhaustive battery in the supplement. See
the executed chain in the JF execution walkthrough.
Anti-patterns
- OLS on raw, over-dispersed crime counts; ignoring exposure/offsets
- Stars-only tables with no rate ratios, effect sizes, or intervals
- Treating trajectory groups as literal offender types; cherry-picking the group count
- Reading a between-person coefficient as within-individual desistance
- "Robustness" that only reruns near-identical specs; p-hacking a significant interaction
Estimator choice keyed to the crime outcome (Criminology decision table)
Criminology reviewers are quantitatively literate and will name a mismatch between model and the
data-generating process for offending. Use the outcome to pick the estimator, then defend the
assumption the reviewer will probe.
| Outcome shape |
Default estimator |
Reviewer will probe |
| Over-dispersed offense counts |
negative binomial w/ exposure offset |
dispersion test, offset justification |
| Excess-zero counts (most offend zero times) |
zero-inflated / hurdle |
what the inflation stage means theoretically |
| Repeated within-person offending |
fixed-effects / hybrid panel |
within vs. between separation |
| Time-to-recidivism, censored |
Cox / competing-risks |
proportional hazards, censoring mechanism |
| Developmental offending paths |
GBTM / growth mixture |
BIC, AvePP ≥ 0.7, group shares not reified |
Worked micro-example: reading a within-person estimate (illustrative)
Suppose a hybrid model returns an incident-rate ratio of 0.62 on the within-person "employed" indicator
(illustrative): entering employment maps to roughly a 38% lower offending rate for the same person,
95% CI [0.49, 0.78], net of stable traits. The between-person column, IRR 0.80, is weaker and reading
it as desistance would conflate selection (people prone to desist also find work) with the within-person
change the life-course claim requires. Report both; tell the reader which identifies the mechanism.
Analysis-stage referee pushback (with the Criminology fix)
- "Official-records bias is unaddressed." Fix: state whether the outcome is arrest, victimization, or self-report, and how the dark figure and UCR→NIBRS recording shifts could bias it.
- "Between-person read as within-person." Fix: report and interpret only the fixed-effects/hybrid within column for developmental claims.
- "Robustness only decorates." Fix: show a spec that could break the result; say what held.
Output format
【Main estimate】magnitude (IRR / predicted count / hazard) + interval + substantive meaning
【Crime measure】reported / victimization / self-report + dark-figure caveat
【Within vs between】isolated correctly? [Y/N/NA]
【Model fit】counts: dispersion handled? trajectory: BIC/AvePP reported? [Y/N/NA]
【Robustness】specs that could break it → what held
【Reproducible】master script + seeds + pinned versions? [Y/N]
【Next】crim-tables-figures
Supplementary resources
Source: brycewang-stanford/Awesome-Journal-Skills → Criminology-Skills/skills/crim-data-analysis/SKILL.md
1---2name: crim-data-analysis3description: "Use when executing and reporting the analysis for a Criminology (ASC / Wiley) manuscript so it survives expert review — honest uncertainty, robustness, and methods appropriate to crime counts, longitudinal panels, trajectory models, and recidivism survival. Guides analysis norms; it does not fabricate results."4category: backend-and-data5source_repo: brycewang-stanford/Awesome-Journal-Skills6source_path: "Criminology-Skills/skills/crim-data-analysis/SKILL.md"7source_url: https://github.com/brycewang-stanford/Awesome-Journal-Skills/blob/HEAD/Criminology-Skills/skills/crim-data-analysis/SKILL.md8metadata:9 source: https://skillmd.com/skills/thedixitjain/crim-data-analysis10---111213# Data Analysis (crim-data-analysis)1415*Criminology* reviewers are methodologically sophisticated and increasingly expect that your results16can be reproduced from deposited materials (see `crim-data-and-transparency`). Analyze as if both are17true. This skill covers execution and reporting norms; design decisions live in `crim-research-design`.1819## When to trigger2021- Running main and supporting analyses; building the results section22- A reviewer asked for robustness, heterogeneity, or alternative specifications23- Fitting a trajectory model, fixed-effects panel, count model, or survival model24- Making the analysis reproducible before deposit2526## Analysis norms Criminology expects27281. **Report uncertainty honestly.** Confidence/credible intervals, not just stars; the **magnitude and29 substantive meaning** (e.g., incident-rate ratios, predicted counts, change in offending), not just30 significance.312. **Right model for crime data.** Counts are over-dispersed and zero-heavy — prefer negative binomial /32 zero-inflated / hurdle over OLS on raw counts; rates need exposure offsets; rare-event cautions apply.333. **Within- vs. between-person.** When the theory is developmental, isolate within-individual change34 (fixed effects / hybrid models); do not interpret a between-person association as a life-course effect.354. **Trajectory models with discipline.** Report BIC across solutions, group shares, average posterior36 probabilities (AvePP ≥ 0.7), and odds of correct classification; do not over-interpret the group count.375. **Survival / recidivism.** Handle right-censoring and competing risks; report the relevant hazard, not38 just a binary "recidivated."396. **Robustness that probes, not decorates.** Show specs that could *break* the result (alternative crime40 measures, samples, estimators, fixed effects) and say what you learn.417. **Right inference.** Cluster at the assignment/sampling level (often place or agency); randomization42 inference for experiments; few-cluster corrections when clusters are sparse.4344## Crime-measurement specifics45- State whether the outcome is reported crime, victimization, or self-report, and how the **dark figure**,46 reporting, and recording changes (e.g., UCR→NIBRS transition) could bias trends.47- Validate scales (self-report delinquency, legitimacy, collective efficacy); report reliability.4849## Reproducibility while you work (not at the end)50- One **master script** regenerates every table and figure from the (raw or constructed) data.51- **Set and report seeds** for bootstrap, randomization inference, EM-based trajectory fitting, simulation.52- Pin software/package versions (`renv.lock`, `requirements.txt`, recorded `ssc`/`net`/`traj` installs).53- Keep table/figure numbers matched to script outputs; document restricted-data steps that others can't rerun.5455## Execution bridge (StatsPAI / Stata MCP)5657Run the battery, don't just enumerate it. Full map:58[`execution-with-mcp`](../../../shared-resources/empirical-methods/execution-with-mcp.md). Criminology is observational — place/person panels where selection is pervasive; foreground DiD/IV/RDD and the selection objection.5960- **Many outcomes / specifications:** `romano_wolf` (step-down FWER) or61 `benjamini_hochberg` — report the adjusted threshold.62- **OVB sensitivity:** `oster_delta` / `sensemakr`.63- **Inference:** `wild_cluster_bootstrap` (few clusters), `twoway_cluster` / `conley`;64 multilevel data → cluster at the right level.65- **Re-fit off one handle:** `audit_result(result_id)` lists the missing checks and the66 exact `suggest_function` for each.67- **Exhibits:** `etable` / `did_summary_to_latex` from the handle — no retyped numbers.6869Keep the decisive checks in the body and the exhaustive battery in the supplement. See70the executed chain in the [JF execution walkthrough](../../../Journal-of-Finance-Skills/resources/worked-examples/02-execution-walkthrough.md).71## Anti-patterns7273- OLS on raw, over-dispersed crime counts; ignoring exposure/offsets74- Stars-only tables with no rate ratios, effect sizes, or intervals75- Treating trajectory groups as literal offender types; cherry-picking the group count76- Reading a between-person coefficient as within-individual desistance77- "Robustness" that only reruns near-identical specs; p-hacking a significant interaction7879## Estimator choice keyed to the crime outcome (Criminology decision table)8081*Criminology* reviewers are quantitatively literate and will name a mismatch between model and the82data-generating process for offending. Use the outcome to pick the estimator, then defend the83assumption the reviewer will probe.8485| Outcome shape | Default estimator | Reviewer will probe |86|---------------|-------------------|---------------------|87| Over-dispersed offense counts | negative binomial w/ exposure offset | dispersion test, offset justification |88| Excess-zero counts (most offend zero times) | zero-inflated / hurdle | what the inflation stage means theoretically |89| Repeated within-person offending | fixed-effects / hybrid panel | within vs. between separation |90| Time-to-recidivism, censored | Cox / competing-risks | proportional hazards, censoring mechanism |91| Developmental offending paths | GBTM / growth mixture | BIC, AvePP ≥ 0.7, group shares not reified |9293## Worked micro-example: reading a within-person estimate (illustrative)9495Suppose a hybrid model returns an incident-rate ratio of 0.62 on the within-person "employed" indicator96(illustrative): entering employment maps to roughly a 38% lower offending rate *for the same person*,9795% CI [0.49, 0.78], net of stable traits. The between-person column, IRR 0.80, is weaker and reading98it as desistance would conflate selection (people prone to desist also find work) with the within-person99change the life-course claim requires. Report both; tell the reader which identifies the mechanism.100101## Analysis-stage referee pushback (with the Criminology fix)102103- *"Official-records bias is unaddressed."* Fix: state whether the outcome is arrest, victimization, or self-report, and how the dark figure and UCR→NIBRS recording shifts could bias it.104- *"Between-person read as within-person."* Fix: report and interpret only the fixed-effects/hybrid within column for developmental claims.105- *"Robustness only decorates."* Fix: show a spec that could break the result; say what held.106107## Output format108109```110【Main estimate】magnitude (IRR / predicted count / hazard) + interval + substantive meaning111【Crime measure】reported / victimization / self-report + dark-figure caveat112【Within vs between】isolated correctly? [Y/N/NA]113【Model fit】counts: dispersion handled? trajectory: BIC/AvePP reported? [Y/N/NA]114【Robustness】specs that could break it → what held115【Reproducible】master script + seeds + pinned versions? [Y/N]116【Next】crim-tables-figures117```118119## Supplementary resources120121- [`../../resources/external_tools.md`](../../resources/external_tools.md) — count, trajectory, survival, and spatial packages122- [`../../resources/official-source-map.md`](../../resources/official-source-map.md) — transparency expectations and crime-data sources123124---125126**Source:** [`brycewang-stanford/Awesome-Journal-Skills`](https://github.com/brycewang-stanford/Awesome-Journal-Skills) → `Criminology-Skills/skills/crim-data-analysis/SKILL.md`