Skip to content
TriedPrompts

More in Large datasets & analysis.

Reproduce an economics paper's findings from replication data with Claude

From only the paper and its replication archive, Claude converted STATA code to Python and reproduced an economics paper's findings.

Result: WorkedTool: Claude (Sonnet 4.5)Level: AdvancedSetup: Needs Python

Copy the prompt

Outcome

Given only the paper and its replication archive, Claude Sonnet 4.5 converted the STATA code to Python and reproduced the findings; the author spot-checked the results and GPT-5 Pro confirmed them. The prompts were simply to replicate the paper's findings from the uploaded dataset, then to replicate the full interactions as far as possible. The author tried the same on several other papers with similarly good results, though some couldn't be done because of file size limits or problems with the replication data, and says doing it by hand would have taken many hours.

Evidence: Article or interviewA newsletter, journalist or interview account of what happened.

WorkedEvidence: Article or interviewPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open Claude (Sonnet 4.5).
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Original prompt

The prompt as the person shared it in the source.

What the prompt labels mean

These are the person's own words, as shared in the source.

replicate the findings in this paper from the dataset they uploaded. you need to do this yourself. if you can't attempt a full replication, do what you can

Try this in:

Sends the Original prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude (Sonnet 4.5). These are general chat tools, so results may differ.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Goal: Replicate the main findings of this paper from its published replication data, doing as much as is feasible.

Inputs (fill in or confirm):
- The paper (PDF) and dataset files
- Which tables or figures matter most
- Software available (R, Python, Stata)

Rules:
- List the paper's key results first (table and coefficient) as your target.
- Document every data cleaning step and assumption in a log.
- Run the analysis yourself; compare each estimate with the paper and give the difference.
- If full replication is impossible, explain exactly which steps blocked it.
- Read the replication README before writing any code.
- Keep the original variable names so the code can be compared line by line with the Stata files.
- Show a table of paper value vs reproduced value for every coefficient you report.
- Flag any result that differs beyond rounding and explain the likely cause.
- Don't adjust specifications to get a closer match.

If you get stuck: If variables are unclear, check the codebook and appendix before assuming. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Re-run the final script from scratch to confirm it reproduces your numbers.

Output: A report: target vs replicated results table, code, log of choices and gaps.

Done when: your table shows each key result with its replicated value and a clear match/mismatch.

AI tool

Claude (Sonnet 4.5)

Source

Posted
by Ethan Mollick
Last checked
Method:
How we verify

https://www.oneusefulthing.org/p/real-ai-agents-and-real-work

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Large datasets & analysis

More in DataRandom case in Data