Model reporting
Start with the expanded example for each command. Open the variants for options and alternative R approaches. Read the qualifications before adapting the code.
estimates
Extract one-row model fit statistics
Stata
estimates statsR Package:broom
broom::glance(fit)Workflow alternative returning an R table; it does not reproduce Stata table formatting.
etable
Create a tidy coefficient table with uncertainty
Stata
etable, cstat(_r_b) cstat(_r_se)R Package:broom
broom::tidy(fit,conf.int=TRUE)Fixed workflow. Workflow alternative returning an R table; it does not reproduce Stata table formatting.
predict
Attach fitted values, residuals and influence diagnostics
Stata
predict result, residualsR Package:broom
broom::augment(fit)Fixed workflow. Workflow alternative returning an R table; it does not reproduce Stata table formatting.