Hi there,
I am using the combomarginsplot by Nicholas Winter. I have a four level DV and a three level categorical predictor (Conventional, Irregular, SNC). I am trying to get a graph the predicted probabilities for each of the four levels of the DV for my three predictor categories on one graph. Option 1 gets me one graph, but the bars are completly overlaying; Option 2 produces three different graphs. For some reason over() does not work with combomarginsplot. I'd appreciate if someone can help me out. I've been on this for hours....
Option 1
oprobit var1 ib1.tr
margins, over (tr) predict(outcome(0)) saving(file1, replace)
margins, over (tr) predict(outcome(1)) saving(file2, replace)
margins, over (tr) predict(outcome(2)) saving(file3, replace)
margins, over (tr) predict(outcome(3)) saving(file4, replace)
combomarginsplot file1 file2 file3 file4, ///
recast(bar) xscale(range(0.5 3.5)) plotdim(tr)
************
Option 2
oprobit var1 ib1.tr
margins, over (tr) predict(outcome(0)) saving(file1, replace)
margins, over (tr) predict(outcome(1)) saving(file2, replace)
margins, over (tr) predict(outcome(2)) saving(file3, replace)
margins, over (tr) predict(outcome(3)) saving(file4, replace)
combomarginsplot file1 file2 file3 file4, ///
recast(bar) xscale(range(0.5 3.5)) by(tr)
I am using the combomarginsplot by Nicholas Winter. I have a four level DV and a three level categorical predictor (Conventional, Irregular, SNC). I am trying to get a graph the predicted probabilities for each of the four levels of the DV for my three predictor categories on one graph. Option 1 gets me one graph, but the bars are completly overlaying; Option 2 produces three different graphs. For some reason over() does not work with combomarginsplot. I'd appreciate if someone can help me out. I've been on this for hours....
Option 1
oprobit var1 ib1.tr
margins, over (tr) predict(outcome(0)) saving(file1, replace)
margins, over (tr) predict(outcome(1)) saving(file2, replace)
margins, over (tr) predict(outcome(2)) saving(file3, replace)
margins, over (tr) predict(outcome(3)) saving(file4, replace)
combomarginsplot file1 file2 file3 file4, ///
recast(bar) xscale(range(0.5 3.5)) plotdim(tr)
************
Option 2
oprobit var1 ib1.tr
margins, over (tr) predict(outcome(0)) saving(file1, replace)
margins, over (tr) predict(outcome(1)) saving(file2, replace)
margins, over (tr) predict(outcome(2)) saving(file3, replace)
margins, over (tr) predict(outcome(3)) saving(file4, replace)
combomarginsplot file1 file2 file3 file4, ///
recast(bar) xscale(range(0.5 3.5)) by(tr)
Comment