Logo van Aer Preregistration

Aer Preregistration

Community
brycewang-stanford
aer-preregistration

Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.

Overzicht

Uitgeverbrycewang-stanford
RepositoryAER-Skills
Skillnaamaer-preregistration
Sterren
62
Forks
11
Meegeleverde bestanden
2
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door brycewang-stanford op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Aer Preregistration in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/brycewang-stanford/AER-Skills/tree/main/skills/aer-preregistration
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brycewang-stanford/AER-Skills.git /tmp/AER-Skills
mkdir -p .claude/skills
cp -r /tmp/AER-Skills/skills/aer-preregistration .claude/skills/aer-preregistration
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Aer Preregistration in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Aer Preregistration automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Aer Preregistration niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

AER Pre-Registration

Overview

For experimental and prospective-data AER-track work, credibility is bought before the data exist. This skill writes the pre-analysis plan (PAP), sizes the sample from a power calculation, and registers the study. Its job is to make the eventual results un-p-hackable: a referee who sees a public PAP timestamp predating data collection cannot accuse you of specification search.

Registration is not optional at AEA journals for RCTs. If the design is observational, skip to aer-robustness; there is nothing to pre-register.

When to Use

  • The paper runs a randomized controlled trial (field, lab, or survey experiment)
  • The project collects primary data whose analysis should be pre-committed
  • A referee or editor asks for the trial registration number or the PAP
  • Reviewers suspect the reported specification was chosen after seeing outcomes
  • You must justify the sample size, or explain why an effect was "not detected"

Register-or-Not Decision

Is treatment assigned by the researcher (randomization)?
├── Yes → register with the AEA RCT Registry BEFORE the intervention; write a PAP
├── No, but you collect new primary data → post a PAP for the pre-committed analysis
└── No, secondary/observational data already realized → do NOT pre-register
      (a PAP written after the outcomes exist is theater); go to aer-robustness

Pre-Analysis Plan Contents

Pre-specify, in order, and timestamp before unblinding:

  1. Hypotheses — each stated as a signed, testable prediction, not a topic:

    H1: the cash transfer raises household consumption at endline by at least 0.15 SD, estimated by OLS of log consumption on treatment with strata fixed effects, clustered at the village level.

  2. Primary outcomes — a short list (ideally 1-3). Everything else is secondary or exploratory and labeled as such.

  3. Estimating equation — the exact regression, fixed effects, covariates, and the level at which standard errors cluster.

  4. Sample and inclusion rules — who is in the analysis and how attrition is handled (pre-commit to bounds; see examples/lee-bounds-demo/).

  5. Multiple-testing correction — the family and the method (e.g. Romano-Wolf, romano_wolf_2005), pre-specified, not chosen after the p-values land.

  6. Heterogeneity — the subgroups you will test, fixed in advance; all others are exploratory.

  7. Power — the MDE and the assumptions behind it (below).

Keep the PAP moderate in scope (Olken's advice): pre-specify the primary analysis tightly, leave genuine discovery clearly flagged as exploratory. An over-long PAP that pre-registers forty outcomes protects nothing.

Power and the Minimum Detectable Effect

Size the sample from the MDE, not the other way around. For a two-arm trial with equal allocation, size sigma, share p, total N:

MDE = (z_power + z_{1-alpha/2}) * sigma * sqrt(1 / (p (1 - p) N))
  • Target 80% power at a 5% two-sided level: $z_{0.80} = 0.84$ and $z_{0.975} = 1.96$, so z_power + z_alpha = 2.80.
  • State the MDE in the units the audience cares about, and benchmark it against the smallest effect that would be economically interesting. If the MDE exceeds that, the study is underpowered — do not run it as designed.
  • Correct the variance for clustered assignment (design effect $1 + (m-1)\rho$ — e.g. $m = 30$ per cluster and $\rho = 0.05$ inflates the needed sample by a factor of $2.45$), for a baseline covariate ($R^2$ gain), and for expected attrition. A power number that ignores the ICC is fiction.
  • Underpowered designs do not just miss: when they reach significance they exaggerate the effect (Type-M). See examples/power-mde-demo/ for the MDE-attains-target-power check and the winner's-curse simulation.

Cite mckenzie_2012 (more rounds beat larger cross-sections when outcomes are noisy) and duflo_glennerster_kremer_2007 (the design toolkit). Keys in ../../references.bib; defaults in ../../docs/methods-reference.md.

Reporting Against the Plan

  • Report the pre-specified primary result first, exactly as written, even if it is null. A pre-registered null is a publishable finding, not a failure.
  • Mark every deviation from the PAP explicitly, with the reason, in a table.
  • Separate confirmatory from exploratory results in the manuscript; never promote an exploratory subgroup to the headline.
  • File the disclosure and IRB/ethics approvals; AEA journals require both.

Red Flags for Referees

  • No registration number on an RCT, or a timestamp after data collection began
  • A power calculation that omits clustering, attrition, or the ICC
  • Twenty "primary" outcomes with no multiplicity correction
  • The headline result is an unregistered subgroup interaction
  • "Not statistically significant" reported as "no effect" with no MDE stated
  • Deviations from the PAP that are silent rather than disclosed

Pre-Registration Gate

Do not advance to data collection until all are true:

  • Primary outcomes and the estimating equation are pre-specified in writing
  • The sample size is justified by an MDE with clustering and attrition built in
  • The multiple-testing family and correction are fixed in advance
  • The study is registered (AEA RCT Registry) with a pre-intervention timestamp
  • Exploratory analyses are labeled as such, not disguised as confirmatory

Repository Resources

Bundled with the installed skill, no repository checkout needed --- read it before the repo resources below:

  • references/pap-template.md --- PAP outline, power/MDE reporting template, registry field checklist

When working from the repo or plugin bundle, load only the relevant resource:

  • Power/MDE worked simulation with the Type-M winner's-curse check: examples/power-mde-demo/
  • Attrition bounds to pre-commit in the PAP: examples/lee-bounds-demo/
  • Estimator defaults, diagnostics, and BibTeX keys: docs/methods-reference.md
  • Multiple-testing correction methods: skills/aer-robustness/SKILL.md
  • Verified references (mckenzie_2012, duflo_glennerster_kremer_2007): references.bib

Fix the MDE and the primary-outcome list before drafting; both feed the aer-identification estimator choice and the aer-consistency audit.

Handoff

text
DESIGN: <RCT | primary-data collection | observational (no PAP)>
PRIMARY OUTCOMES: <list, 1-3>
MDE / POWER: <MDE in outcome units; power; assumptions incl. ICC and attrition>
MULTIPLICITY: <family + correction method>
REGISTRATION: <AEA RCT ID + timestamp, or "n/a">
NEXT SKILL: aer-identification (confirm estimator) then aer-robustness

Anti-Patterns

  • Writing the PAP after the endline data are in hand — the timestamp is the point
  • Pre-registering so many outcomes that "confirmatory" loses all meaning
  • Powering the study for the effect you hope for instead of the smallest one worth detecting
  • Treating a registered null as a failed experiment rather than a clean result
  • Reporting an exploratory subgroup as if it had been pre-specified

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Aer Preregistration?

Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.

Waarom Aer Preregistration gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Aer Preregistration bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Aer Preregistration in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/brycewang-stanford/AER-Skills/tree/main/skills/aer-preregistration. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Aer Preregistration gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Aer Preregistration gebruiken?

Zoveel als je wilt. Je kunt Aer Preregistration gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Aer Preregistration gratis?

Ja. Deze skill is door brycewang-stanford op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇