I am running an mlogit model for survey data and trying to figure out the best way to visualize the predicted probabilities for each category of the IV “ethnicity” for each of the 5 categories of the dependent variable ("candidates"). When I do margins and run “marginsplot” after, the X axis is the categories of ethnicity. I want to visualize it so that I can compare the categories of ethnicity for each of the dependent variables. For example, make the x dimension each category of the dependent variable. Thank you in advance.
svy: mlogit candidates i.ethnicity age male educ income, baseoutcome(1)
margins ethnicity, predict(outcome(1)) predict(outcome(2)) predict(outcome(3)) predict(outcome(4)) predict(outcome(4))
marginsplot
svy: mlogit candidates i.ethnicity age male educ income, baseoutcome(1)
margins ethnicity, predict(outcome(1)) predict(outcome(2)) predict(outcome(3)) predict(outcome(4)) predict(outcome(4))
marginsplot
Comment