Page 1 of 1

LCM non-fixed constants

Posted: 18 May 2023, 01:21
by declanmonro
Hi Stephane,

I had a question about running the latent class model in Apollo. In the example on the Apollo website (LC_no_covariates.r), you keep asc_1 constant across the classes (with asc_2 fixed at 0). I can’t quite work out how you change this to not being fixed across classes (i.e., different asc_1 constant per class). Are you able to send me an example of how you adapt the syntax to do this?

Thanks for your help.

Declan

Re: LCM non-fixed constants

Posted: 18 May 2023, 06:54
by stephanehess
Hi

constants are no different from other model parameters. You will just need to include the constants in apollo_lcPars. Have a look at how the parameters that vary across classes are treated, and you need to just do the same for your constants

Stephane