Dear Statalisters,
I would like to plot univariable coefficients right below multivariable coefficients - for an easy assessment of confouding factors. I have been using -coefplot-.
This is what I have been doing:
This is almost what I need. However, I would like to have two colors only (navy = multivariable, cranberry = univariable). Although I don't mind manually editing, the problem is that the spacing between estimates seem to increase from top to bottom.
Do you have any suggestions how to overcome that problem?
All the best,
Tiago
I would like to plot univariable coefficients right below multivariable coefficients - for an easy assessment of confouding factors. I have been using -coefplot-.
This is what I have been doing:
Code:
* --------- begin example ----------------*
clear
set obs 100
gene y = rnormal(100,20)
forvalues i = 1/6 {
gene cov`i' = runiform()
}
regress y cov1-cov6
estimates store multi
forvalues i = 1/6 {
regress y cov`i'
estimates store uni`i'
}
coefplot multi uni1 uni2 uni3 uni4 uni5 uni6 , drop(_cons)
* --------- end example ----------------*
Do you have any suggestions how to overcome that problem?
All the best,
Tiago

Comment