I would like to merge multiple models into the same series (crude/adjusted/further adjusted models) from regression results stored from a loop.I would appreciate if someone can help with syntax below.
sysuse auto, clear
** Unadjusted model ***
foreach var in mpg trunk length {
quietly regress price `var'
estimates store `var'_unadusted
}
** Adjusted model with "turn" as a confounder ***
foreach var in mpg trunk length {
quietly regress price `var' turn
estimates store `var'_adjusted
}
coefplot (mpg trunk length , label(unadjusted)) ///
(mpg trunk length , label(adjusted)) ///
, drop(_cons) xline(0)
Related Posts with Appending models using coefplot
Geographic Regression discontinuityHello guys, I am comparing the economic well-being of some group of people residing on opposite side…
Error "initial values not feasible" for multiple imputation.Dear experts, I'd like to ask for your help with syntax. I am doing a multiple imputation as below,…
Way to identify first successful loop iteration?Hi Stata, I have a loop: forv x = 1/100{ cap{ [stata_commands] [if first successful iteration, exe…
Weighting without knowing psuDear Stata users, I want to conduct some cross-sectional analysis with data from the South African …
-mimrgns- and -marginsplot-The help file for mimrgns states that while "[i]n principle, marginsplot works after mimrgns […], th…
Subscribe to:
Post Comments (Atom)
0 Response to Appending models using coefplot
Post a Comment