Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/data-cleaning
Clean and transform messy data for analysis in Python, R, or Stata
Passed 19 of 24 test cases with the skill, and 18 of 24 without it.
2 fixed17 passed either way4 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
For an annual earnings variable in Stata, cap extreme values above the 99th percentile without modifying existing missing values. Write the exact Stata commands.
| Checked | Without skill | With skill |
|---|---|---|
| Calculates summary detail statistics using summarize with the detail option. | Missed | Passed |
| Replaces values exceeding r(p99) while checking for non-missing values. | Missed | Passed |
The instructions your model reads when the skill loads.
This skill helps economists clean, transform, and prepare datasets for analysis in Python, R, or Stata. It emphasizes reproducibility, proper documentation, and handling common data quality issues found in economic research.
Before generating code, ask the user:
Create a Stata do-file that:
assert statements to verify data integritylabel variabletest cases passed, vs 18 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.