What does the table retain?
Official Stata actually estimated and exported both models on the same 74 complete cases from auto with vce(robust). Word displays three decimals while CSV retains calculation precision. Coefficients, parenthesized SEs, N, R² and unit notes originate in the same estimation. Absent mpg is labelled Not included and no stars are added.
| Model | Weight coefficient | Robust SE | N |
|---|---|---|---|
| Weight only | 2.044 | 0.390 | 74 |
| Add mpg | 1.747 | 0.778 | 74 |
How to edit and rerun
The native Word table has 9 rows and 3 columns, with editable labels, widths and notes. Stata fills cells directly from estimation; a standard-library Python script only removes title decoration and sets generic metadata without changing numbers. Extract into a new directory, save previous Stata work, run do analysis.do, then python finalize_word.py regression-table.docx.
- Full-precision coefficients CSV
- Stata do-file · Word formatting script
- Actual Stata run log · Rerun instructions
The package excludes source auto data and Stata software; licensed Stata is required. clear all clears the practice session and replace overwrites named outputs. Calculation and page rendering were checked on macOS/Stata 19.5, without Windows hardware or model-run validation. The regressions do not identify causal effects.