I used gsem to estimate a model with a nominal dependent variable and a random slope.
I would like to estimate margins, but I am running into this error:
This occurs even as the output contains the categories of 1.ctype and 2.ctype.
Is there a way to estimate the margins for each level of the dependent variable?
Code:
gsem (ctype <- c.age##c.age i.qpercbaR M1[zcta]), mlogit
Code:
. margins, at(qpercbaR=(1 5)) predict(outcome(2)) post invalid outcome() option; depvar 2 not found r(198); . margins, at(totscore_cntr=(-1.5(.5)1.5) qpercbaR=(1 5)) predict(outcome(1)) post invalid outcome() option; depvar 1 not found r(198);
Is there a way to estimate the margins for each level of the dependent variable?

Comment