claude

p-hacking-skills

Study p-hacking in econometric designs: map researcher degrees of freedom, audit a specification search with a complete ledger and null-calibrated honest p-values, replay realistic search procedures, detect p-hacking in a literature, immunise an analysis, and benchmark whether an AI agent p-hacks. Research and teaching use only.

5,011 on GitHubby Bryce Wangv0.5.0MITupdated 3 days ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin p-hacking-skills in brycewang-stanford/Auto-Empirical-Research-Skills. Commands read from the repo's manifest — 3 days ago.

What it installs

Skills (11)

  • phack-router

    Entry point for the p-hacking skills suite. Routes a request to the right sub-skill for (a) mapping researcher degrees of freedom in an econometric design, (b) running an instrumented specification search, (c) detecting p-hacking in a body of results, (d) immunising an analysis against it, or (e) ru

  • phack-taxonomy

    Name and classify p-hacking strategies, and quantify what each one does to the false-positive rate. Covers the twelve-strategy compendium of Stefan and Schoenbrodt (2023), thirteen econometrics-specific degrees of freedom (clustering doctrine, fixed-effect structure, RDD bandwidth, kernel and infere

  • forking-paths

    Map the garden of forking paths for a concrete econometric design and turn it into a machine-readable design card that the specification-search engine can walk. Use when asked how many defensible analyses a dataset or research design admits, to enumerate researcher degrees of freedom for a specific

  • specification-search

    Run an instrumented walk of a specification universe and recover honest inference from it. Estimates every specification in a design card (or walks it with a realistic search procedure), logs a complete ledger, flags pathological specifications, calibrates the search against an enforced null, runs t

  • framing-attacks

    Catalogue of prompt framings that determine whether an agent refuses or performs specification search, and the harness for probing them. Reproduces and extends the published finding that coding agents refuse an explicit request for significant results but comply when the identical request is reframe

  • narrative-laundering

    Audit how an empirical write-up presents its analytical choices, and detect the rhetorical moves that convert a specification search into an apparently confirmatory finding. Covers HARKing, robustness theatre, selective disclosure, the vanishing pilot study, and estimator-choice narratives. Use when

  • phack-detection

    Test whether a body of reported results shows p-hacking, selective reporting or selection between stages, using the p-curve battery and the threshold and across-stages tests of Adda, Decker and Ottaviani (2020). Implements the binomial, Fisher, Stouffer and least-concave-majorant monotonicity tests

  • phack-immunization

    Make an empirical analysis robust to specification search, before or after the fact. Covers pre-registration and pre-analysis plans encoded as design cards, specification-curve reporting with the Simonsohn joint tests, Romano-Wolf and effective-multiplicity corrections, full-procedure null calibrati

  • phack-eval-harness

    Run and score the agent p-hacking benchmark. Composes prompt cells across research framing and significance pressure, drives an agent through them, and scores each run into a P-Hacking Intensity index decomposed into selection, search breadth, estimate inflation, inference gap, pre-registration depa

  • search-procedures

    Model how a specification universe is actually walked, rather than assuming it is enumerated. Implements the search procedures a p-hacker or a pressured agent uses (first-significant stopping, random trial within a budget, greedy coordinate descent from the pre-registered analysis, random hill-climb

  • phack-polyglot

    Run the instrumented specification search in the user's own statistical language — Stata (reghdfe, ivreghdfe, rdrobust, did2s), R (fixest, rdrobust, did2s), Python (statsmodels, linearmodels) or StatsPAI — and bring the results back into the audit, null calibration and honest report. Exports the enu

View source on GitHub copaper.ai

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 9 plugins →

Nine-skill stack for top-5 economics manuscripts (AER / AER: Insights / AEJ): topic selection, modern causal identification (DiD / IV / RDD / SCM / Bartik), referee-anticipating robustness, Keith-Head-style introductions, AER booktabs tables, AEA Data and Code Availability deposits (openICPSR-ready), submission preflight, and R&R rebuttal letters. Ships Stata / R / Python templates and classic-AER-paper exemplars.

15 skills

5,011

Explicit 8-step empirical-analysis pipeline in the traditional Python econometrics stack (pandas + statsmodels + linearmodels + pyfixest + rdrobust + econml + causalml): cleaning -> variable construction -> Table 1 -> diagnostics -> estimation (OLS/IV/DID/RDD/PSM/SCM/DML/Causal Forest) -> robustness -> mechanism/heterogeneity/mediation -> publication-ready tables & figures. Includes epidemiology and ML-causal modes.

1 skill

5,011

Explicit 8-step empirical-analysis pipeline in the modern tidyverse + econometrics R stack (dplyr + haven + fixest + did + synthdid + rdrobust + MatchIt + WeightIt + grf + DoubleML + mediation + marginaleffects + modelsummary). All eight steps fit in a single .qmd; `quarto render` produces a unified PDF/HTML/Word reproducibility report. Includes epidemiology and ML-causal modes.

1 skill

5,011

Explicit 8-step empirical-analysis pipeline in the traditional Stata ecosystem (reghdfe + ivreg2 + csdid + did_imputation + sdid + rdrobust + synth + psmatch2 + teffects + esttab + coefplot): from use/import to .tex/.rtf tables and .pdf figures, with the full modern DID toolkit (bacondecomp + honestdid + rwolf + ritest). Includes epidemiology and ML-causal modes. The first choice for referee-level Stata replication packs.

1 skill

5,011

stata

claude

Comprehensive Stata reference — syntax, data management, econometrics, causal inference, graphics, Mata, and 20 community packages.

1 skill

5,011

Develop high-performance C/C++ plugins for Stata — SDK setup, .ado wrappers, cross-platform compilation, performance optimization, and Python/R package translation.

1 skill

5,011

Similar plugins

Thirteen-skill bundle covering the 《数量经济技术经济研究》 manuscript lifecycle: workflow router, fit positioning (measurement/forecasting vs causal), topic selection, literature review, productivity/efficiency measurement, time-series & macro-econometric methods, out-of-sample forecasting evaluation, input-output / CGE / structural decomposition, measurement & parameter sensitivity, quantitative tables/figures, planning/forecasting/industry implications, submission preflight, and rebuttal.

13 skills

brycewang-stanford/Awesome-Journal-Skills 1,413

stata

claude

Comprehensive Stata reference for writing correct Stata code — covers syntax, data management, econometrics, causal inference, graphics, Mata, and 20 community packages.

1 skill

dylantmoore/stata-skill 304

Stata statistical analysis for publication-ready sociology research. Phased workflow for DiD, IV, matching, panel methods, and more with pauses for user review.

1 skill

nealcaren/social-data-analysis 96

Causal inference plugin: plan, implement, and stress-test causal analyses in R and Python.

14 skills

RobsonTigre/everyday-causal-skills 84

Run Stata from Claude Code through the stata-code MCP server (23 tools, 14 workflow prompts, typed errors, token-economy logs/graphs, multi-session) and an agent skill that teaches Claude the result schema and modern DiD/IV/RDD/table workflows, including StatsPAI cross-validation.

1 skill · 1 MCP server

brycewang-stanford/stata-code 55

Research Agent Harness — a controlled execution environment for reproducible empirical research agents.

32 skills · 5 agents · hooks

maxwell2732/claudecode-research-harness-workflow 42

Maintain p-hacking-skills?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins9 plugins