Hi I ran a LCA
Of note I have searched Statalist entirely and looked at every post about LCA + margins plot
I followed these notes too
https://www.stata.com/meeting/uk18/s..._MacDonald.pdf
Code:
gsem(postq1 <-preq1, ologit) /// (postq2 <-preq2, ologit) /// (postq3 <-preq3, ologit) /// (postq4 <-preq4, ologit) /// (C <- treatment) [fw=fw], lclass(C3) /// Trying to plot line graph for each class by treatment (treatment is binary 0/1 (see attached)margins, predict(postq1) class(1)) /// predict(postq2) class(1)) /// predict(postq3) class(1)) /// predict(postq4) class(1)) /// ///ERROR: too few variables specified
I followed these notes too
https://www.stata.com/meeting/uk18/s..._MacDonald.pdf
Comment