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
Creating variables that sum variables in regularly interspaced columnsHi, I would like to create a formula for making variables of the kind: gen newvar = v[k] + v[k+8] +…
Comparing mortality rate over yearsDear Statlisters, I am trying to find : whether there is a "significant change in the mortality rate…
psmatch2 and pstestHallo, I have a question regard "psmatch2" and "pstest". I use the same propensity score, but i am …
Is a Logarithmic interaction term possible?Hello, I'm currently working on an econometric conflict model, where I've taken the natural logarith…
Bootstraped mediation with multiple IVsDear Statalisters, I am running a SEM model with multiple independent variables and a cluster varia…
Subscribe to:
Post Comments (Atom)
0 Response to Appending models using coefplot
Post a Comment