I'm having difficulty using the combomarginsplot and I am not sure if it is because I am using a binary logit model. Below is the sample code followed by the individual outputs and the combomarginsplot.
Variables descriptions:
stress: 0=no high stress 1=high stress
gender: 0=male 1=female
curmar: 0=not married 1=married
cohab: 0=not cohabiting 2 = cohabiting
Commands:
logit stress gender curmar cohab
margins, at(gender==0 curmar==0 cohab==0) at(gender==0 curmar==0 cohab==1) ///
at(gender==0 curmar==1 cohab==0) at(gender==0 curmar==1 cohab==1) atmeans saving(f1, replace)
marginsplot
margins, at(gender==1 curmar==0 cohab==0) at(gender==1 curmar==0 cohab==1) ///
at(gender==1 curmar==1 cohab==0) at(gender==1 curmar==1 cohab==1) atmeans saving(f2, replace)
marginsplot
combomarginsplot f1 f2, noci

On the comboplot, it is separated by file. File 1 is on the lest and file 2 is on the right.
Thank you
Variables descriptions:
stress: 0=no high stress 1=high stress
gender: 0=male 1=female
curmar: 0=not married 1=married
cohab: 0=not cohabiting 2 = cohabiting
Commands:
logit stress gender curmar cohab
margins, at(gender==0 curmar==0 cohab==0) at(gender==0 curmar==0 cohab==1) ///
at(gender==0 curmar==1 cohab==0) at(gender==0 curmar==1 cohab==1) atmeans saving(f1, replace)
marginsplot
margins, at(gender==1 curmar==0 cohab==0) at(gender==1 curmar==0 cohab==1) ///
at(gender==1 curmar==1 cohab==0) at(gender==1 curmar==1 cohab==1) atmeans saving(f2, replace)
marginsplot
combomarginsplot f1 f2, noci
On the comboplot, it is separated by file. File 1 is on the lest and file 2 is on the right.
Thank you
Comment