Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run regression analyses in Stata with publication-ready output tables.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 32% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 22% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 54% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 40% | 0% |
This skill produces reproducible regression analysis workflows in Stata, including model diagnostics and publication-ready tables using esttab or outreg2.
Follow these steps to complete the task:
Before generating any code, ask the user:
Based on the context, generate Stata code that:
regress, reghdfe, or xtreg as appropriateesttab or outreg2 with clear labelsAfter generating output:
stata* ============================================ * Regression Analysis with Stata * ============================================ * Load data use "data.dta", clear * Summary stats summarize y x1 x2 x3 * Main regression with clustered SEs regress y x1 x2 x3, vce(cluster firm_id) eststo model1 * Alternative specification with fixed effects reghdfe y x1 x2 x3, absorb(firm_id year) vce(cluster firm_id) eststo model2 * Export table esttab model1 model2 using "results/regression_table.tex", replace se label
estout (for esttab)reghdfe (optional, for high-dimensional fixed effects)Install with:
statassc install estout ssc install reghdfe
Other measured skills in the registry, with their headline benchmark lift.