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
A problem for conducting network meta regression by STATAI'm conducting a network meta regression with package mvmeta, howwever, "too many variables sepcific…
Counting diseasesHi dear Statalist: I have a question. My dataset has 6764 subjects, from them 4142 have any disease…
Interpretation of interaction terms in OLSDear StataList Members, I am trying to estimate the household composition for female children in th…
the format of number was transformed to string wrongly when using import excel, how to solve this?The varaiable id is number in excel, after importing to stata, it becomes string variable, how to co…
Using strings in a Stata dataset as filenamesI have a dataset with 1 column. This one column contains file names with their proper directory pref…
Subscribe to:
Post Comments (Atom)
0 Response to Coefplot: keep / drop coefficients from one model, not the whole plot
Post a Comment