Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Postestimation commands for gsem using mi est and survey weights

    Hello all,

    I am using gsem in Stata 18.0 to run a latent class analysis.
    I am able to run the model with mi est and survey weights, but I am unable to obtain latent class goodness of fit statistics using the postestimation command estat.
    Due to my data being confidential and the complex nature of this model, I am unable to provide sample data, which I know is requested, but I hope I can get some direction on how to obtain latent class goodness of fit statistics.
    Below is sample code of my latent class model:

    mi est, cmdok:gsem (var1 var2 var3 var4 var5 <-) [pweight= gsw5] , logit lclass(c 2)

    When I attempt to obtain postestimation commands, I get the error message:

    estat lcgof
    estat lcgof is not valid
    an error occurred when mi estimate executed estat on m=1


    My question is this: is there a way to obtain lcgof statistics using multiply imputed data and survey weights in Stata 18.0?
    I have searched the forums and read all relevant Stata help files, but I have found no information pertaining to these specific circumstances.
Working...
X