According to the documentation for fmm postestimation, the margins command can predict latent class probabilities for any class:
However, if I try to specify a class, I get an error:
I would be grateful if someone could tell me what I am doing wrong.
Thanks
Syntax for margins
...
classpr defaults to the first latent class if option class() is not specified.
However, if I try to specify a class, I get an error:
Code:
use https://www.stata-press.com/data/r16/mus03sub
quietly fmm 3, lcprob(totchr): regress lmedexp income c.age##c.age totchr i.sex
margins, predict(classpr) class(2)
option class() not allowed
Thanks
Comment