Greetings
I am using the coefplot command using the following example of data
My code is
svy linearized, subpop(if v012<=24 & v525>0 & v025==1) : mepoisson ms_afm_18_1 ib3.rev149 ib2.rev130_2 ib3.rev190 i.v151 ib8.v024 ib4.comLevPvt ib3.comLevLit i.sex_before_mar || v001:, irr
estimates store urban_mepoisson
svy linearized, subpop(if v012<=24 & v525>0 & v025==2) : mepoisson ms_afm_18_1 ib3.rev149 ib2.rev130_2 ib3.rev190 i.v151 ib8.v024 ib4.comLevPvt ib3.comLevLit i.sex_before_mar || v001:, irr
estimates store rural_mepoisson
coefplot urban_mepoisson rural_mepoisson
coefplot urban_mepoisson rural_mepoisson, eform drop(_cons) omitted xline(1, lcolor(black) lwidth(thin) lpattern(dash))
and it produced following graph after editing some using the graph editor.

Now I just want to show the graph for Yes vs No, No edu vs Higher, Primary vs Higher and Secondary vs Higher. Rest of the variables not need to be displayed in the graph and the plot need to be precise for those specific coefficients that I want to display.
How can I do that?
Regards
I am using the coefplot command using the following example of data
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(rev149 rev729) float comLevPvt byte(ms_afm_18_1 rev190 rev130_2) float sex_before_mar 1 1 1 1 1 1 0 1 . 1 1 1 1 0 2 1 1 1 1 1 0 1 1 1 1 1 1 1 3 3 1 1 1 1 0 1 0 1 1 1 1 0 2 2 1 1 1 1 1 0 1 1 1 1 1 0 1 2 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 2 1 1 1 1 1 0 2 3 1 0 1 1 0 2 1 1 0 1 1 0 2 1 1 1 1 1 0 1 0 1 1 1 1 0 1 2 1 1 1 1 0 2 2 1 1 1 1 0 3 3 1 1 2 1 1 1 1 1 0 1 1 0 2 3 1 1 2 1 0 1 2 1 0 1 1 0 0 0 1 0 1 1 0 3 3 1 0 2 2 0 1 2 1 0 2 2 0 3 3 1 0 2 2 0 1 2 1 0 3 2 0 0 1 1 1 1 1 0 2 1 1 1 1 1 0 1 0 1 1 1 1 0 1 3 1 0 1 1 0 1 2 1 1 1 1 0 1 1 1 1 2 1 0 1 1 1 1 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 0 2 2 1 1 1 1 1 1 0 1 1 1 1 0 3 3 1 0 3 1 0 2 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 2 1 1 0 1 1 0 1 2 1 1 1 1 0 2 2 1 1 1 1 1 2 2 1 0 1 1 0 2 2 1 1 1 1 1 2 3 1 1 1 1 1 1 0 1 0 1 1 0 1 2 1 1 1 1 0 end label values rev149 rev149 label def rev149 0 "No education", modify label def rev149 1 "Primary", modify label def rev149 2 "Secondary", modify label def rev149 3 "Higher", modify label values rev729 rev729 label def rev729 0 "No education", modify label def rev729 1 "Primary", modify label def rev729 2 "Secondary", modify label def rev729 3 "Higher", modify label values comLevPvt comLevPvt label def comLevPvt 1 ">41.0 (High poverty)", modify label values ms_afm_18_1 ms_afm_18_1 label def ms_afm_18_1 0 "No", modify label def ms_afm_18_1 1 "Yes", modify label values rev190 rev190 label def rev190 1 "Poor", modify label def rev190 2 "Middle", modify label def rev190 3 "Rich", modify label values rev130_2 rev130_2 label def rev130_2 1 "Muslim", modify label def rev130_2 2 "Non-muslim", modify label values sex_before_mar sex_before_mar label def sex_before_mar 0 "No", modify label def sex_before_mar 1 "Yes", modify
svy linearized, subpop(if v012<=24 & v525>0 & v025==1) : mepoisson ms_afm_18_1 ib3.rev149 ib2.rev130_2 ib3.rev190 i.v151 ib8.v024 ib4.comLevPvt ib3.comLevLit i.sex_before_mar || v001:, irr
estimates store urban_mepoisson
svy linearized, subpop(if v012<=24 & v525>0 & v025==2) : mepoisson ms_afm_18_1 ib3.rev149 ib2.rev130_2 ib3.rev190 i.v151 ib8.v024 ib4.comLevPvt ib3.comLevLit i.sex_before_mar || v001:, irr
estimates store rural_mepoisson
coefplot urban_mepoisson rural_mepoisson
coefplot urban_mepoisson rural_mepoisson, eform drop(_cons) omitted xline(1, lcolor(black) lwidth(thin) lpattern(dash))
and it produced following graph after editing some using the graph editor.
Now I just want to show the graph for Yes vs No, No edu vs Higher, Primary vs Higher and Secondary vs Higher. Rest of the variables not need to be displayed in the graph and the plot need to be precise for those specific coefficients that I want to display.
How can I do that?
Regards

Comment