Dear Statalisters,
I have the following easy issue to solve. I would like to plot margins of employ2, which has four levels and a missing category.
svy: mlogit uniontype2 i.durationtype i.agesm2_f##i.mage_gap_cat i.wave5 i.employ2 ib0.evunionpr i.shared i.educ2_f i.homog if marital==3&duratyrs3>0&duratyrs3<6&homo3==0&sampst ==1&ivfioall==1&(minagentry>18&minagentry<37)&sex! =.&educ2_f!=4&educ2_m!=4&agesm2_f!=., level(90) rrr base
margins i.employ2 , level(90) pr(out(1)) pr(out(2))
mplotoffset , xdim(employ2) legend( order(4 "Marriage" 3 "Dissolution" ) ring(5)) ytitle("Probability") title("Employment") offset(0.15) recast(scatter) plotregion(lcol(black)) saving(employ2, replace) xlab(,labsize(small) alternate) xtitle("") plot2opts(msymbol(D))
I would like to plot the four categories, but not the missing. one.
However, I would avoid restrcting with "if" in the following way,
margins i.employ2 if employ2<5 , level(90) pr(out(1)) pr(out(2))
as I have slight different estimates than if computed margins for all the categories.
Thank you and best,
Lydia
Related Posts with How to omit one category of margins from marginsplot
How to write an egen function that takes one variable as an input, but produces two variables using the input variable as a stub?Good afternoon, I am trying to write an egen function that takes one newvar as an input, but genera…
Oaxaca and Blinder DécompositionHello to all I am trying to implement an Oaxaca blinder decomposition to try to explain the differen…
Non-central t distributionHello StataList, I have a question, How can I assume noncentral distribution in GJR-GARCH model. I k…
How to increase standard deviation by 1?Holding other variables constant, how do you know how much you need to increase 1 independent variab…
quaids standard errorsHi, I am estimating an Almost Ideal Demand System (AIDS) for different meat types using the stata co…
Subscribe to:
Post Comments (Atom)
0 Response to How to omit one category of margins from marginsplot
Post a Comment