Hello,

This is my first post so hopefully, I will get it right.

I run mlogit and would like to use coefplot (from ssc) to show my outcome. My dependent variable (decoupling) contains 4 categories.

What I currently get is a long graph with the three categories one beneath the other. What I would like to get is a graph with the three categories side-by-side. In fact, if it makes sense, having all four categories (including the based one) would be ideal. If someone knows how to do that, this will be much appreciated!

Here is an example of my data:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float decoupling long waves2 byte(urban educlvl husedlvl) float(edugap employment) byte(wealthq tv)
3 1 0 1 0 2 1 1 0
0 0 1 1 1 1 1 5 1
1 . 0 0 1 0 0 4 0
1 . 0 1 0 2 3 3 0
3 0 0 0 0 1 2 2 0
2 1 1 3 2 2 0 5 1
0 1 0 2 2 1 1 2 1
0 0 0 1 2 0 0 4 1
0 1 0 0 1 0 2 2 0
3 1 0 2 0 2 0 1 0
3 0 0 2 2 1 0 5 1
3 0 0 0 1 0 0 2 0
0 1 0 2 2 1 0 1 0
3 0 0 0 0 1 2 3 0
0 1 1 3 3 1 1 5 1
0 0 1 3 3 1 0 5 0
1 . 0 0 . . 3 4 0
1 . 0 2 2 1 0 3 0
1 1 0 2 2 1 3 3 0
1 0 0 0 1 0 0 4 1
end
label values decoupling decouplingl
label def decouplingl 0 "Supports gender equity/Empowered in household", modify
label def decouplingl 1 "Rejects gender equity/Empowered in household", modify
label def decouplingl 2 "Supports gender equity/Not empowered in household", modify
label def decouplingl 3 "Rejects gender equity/Not empowered in household", modify
label values waves2 waves2
label def waves2 0 "first wave", modify
label def waves2 1 "second wave", modify
label values urban urbanl
label def urbanl 0 "rural", modify
label def urbanl 1 "urban", modify
label values educlvl EDUCLVL
label def EDUCLVL 0 "no education", modify
label def EDUCLVL 1 "primary", modify
label def EDUCLVL 2 "secondary", modify
label def EDUCLVL 3 "higher", modify
label values husedlvl HUSEDLVL
label def HUSEDLVL 0 "no education", modify
label def HUSEDLVL 1 "primary", modify
label def HUSEDLVL 2 "secondary", modify
label def HUSEDLVL 3 "higher", modify
label values edugap edugapl
label def edugapl 0 "less", modify
label def edugapl 1 "equal", modify
label def edugapl 2 "more", modify
label values employment employmentl
label def employmentl 0 "doesn't work", modify
label def employmentl 1 "all year", modify
label def employmentl 2 "seasonally", modify
label def employmentl 3 "occasionlly", modify
label values wealthq WEALTHQ
label def WEALTHQ 1 "poorest", modify
label def WEALTHQ 2 "poorer", modify
label def WEALTHQ 3 "middle", modify
label def WEALTHQ 4 "richer", modify
label def WEALTHQ 5 "richest", modify
label values tv tv
label def tv 0 "no", modify
label def tv 1 "yes", modify
And here is the code that I am using
Code:
mlogit decoupling waves2 urban i.educlvl i.husedlvl i.edugap i.employment i.wealthq tv, rrr
estimates store m1
coefplot m1, drop(_cons) keep(*:) scheme(s1mono)
And the graph that I currently get:
Array

Thank you in advance!