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
Venn diagramHi I'm trying to do a Venn diagram with 4 variables but the code pvenn allows only 3 variables maxim…
How to Handle Heterogeneity in Panel Data using Systems GMM approachDear Stata Users, I am currently researching on Foreign direct investment in Africa using the Syste…
How to model "Sparial Variability" or "Choice of Location"I have a survey data on 10000 delivery person. I have number of delivery they made in 49 neighborhoo…
Question about diff-in-diff with multiple control groups and one treatment groupHello! I am running a Difference in Difference (DD) regression to see whether the introduction of a…
SubanalysisHello, I have a few questions regarding interaction terms. 1. If I have my final logistic regressi…
Subscribe to:
Post Comments (Atom)
0 Response to Appending models using coefplot
Post a Comment