Dear Statalist,
I've recently started using coefplot command and like it's versatility, but I cannot work out how to use the keep command as a model option rather than a global option (as it seems you can from the help file (http://repec.sowi.unibe.ch/stata/coe...help-file.html).
Specifically I would like to create a graph with 5 different models: each contains an identical list of individual level variables (model 1), and model 2-5 adds one country level variable each. If I show all of the models at once the individual level coefficients (which are pretty much the same - i.e. adds very little info) fall on top of each other and it looks cluttered. Instead I would like to include them in model 1 and exclude them from model 2-5, where I would like to only show the country level coefficients. I have tried the following command:
coefplot (M1, label(Model 1)) (M2, label(Model 2), keep(zGini)) (M3, label (Model 3), keep (zGDPrev)) (M4, label (Model 4), keep (zWGIrev)) (M5, label (Model 5), keep (zMIPEXrev)) ///
drop(_cons) xline(0)
However, this does not work, and I get the error message
invalid 'keep'
r(198);
What am I doing wrong, and does anyone know a way to do this? Hope you can help,
Ingrid
Related Posts with Coefplot: keep / drop coefficients from one model, not the whole plot
log forvalueswhile Code: forvalues i = 10(10)200 { works great, and increments i linearly, is it possible to eas…
Combining Datasets and Reformatting DataHello everyone. I have a number of datasets (excel files) with data formatted as SheetName: Year1,…
Multiple individuals per household id number: how to get household information from individual observationsI am working in a dataset that has both household and individual level variables. We have a total of…
Plotting Gamma function simultaneouslyAny possibility one could plot two different gamma distributions at the same time. …
dropping observation with a conHello all, I would like to drop certain observations from my database and I am not sure how to do so…
Subscribe to:
Post Comments (Atom)
0 Response to Coefplot: keep / drop coefficients from one model, not the whole plot
Post a Comment