Hi there, I am trying to look at the typologies of food outlets (within 1km from home) and eating behaviours. To do so, I have used the gsem command to fit a latent class model (I have ran the AIC BIC test and a three-class model deemed to be best fit):
gsem (supermarket butcher conveniencestore bakery fastfood cafe<-), logit lclass(c 3)
estat lcprob
estat lcmean
The next step is to examine the association between the 3 typologies and eating behaviour (continous outcome).
I got stuck on this step. I've tried different ways of modelling but kept getting error messages
e.g.
. gsem ( fruit_consumption -> lsupermarket butcher conveniencestore bakery fastfood cafe, logit), lclass(c 3)
option lclass() not allowed;
option lclass() is not allowed with models specified with continuous latent variables
Can anyone help assist with the second step? Is there a way to save each typology and run a regression separately?
Thanks in advance.
Related Posts with How to save each Latent Class model (n=3) as predictor to run a regression model?
couting unique observation id sales profit year size_group a 36 9 1991 1 a 48 17 1992 1 a 25 7 1993 2 b 65 18 19…
Create consecutive days with unequal number of obs per dayDear Stata folks, I have a dataset with patient_ids, days and a measurement(outcome). Patients may …
Issue with xtologit (non concave routine)Hallo everybody I ask for your help to manage an issue as described in the object of this post. I am…
How do I interpret a log level and log log model when my independent variable is already a percentage?Hi everyone I have a regression in which I would like to estimate the effect of migrant share (fro…
Panel specification- choosing the best modelHi, I try to model panel data with N=28 and T=15 (tsset number year). I have one binary variable in …
Subscribe to:
Post Comments (Atom)
0 Response to How to save each Latent Class model (n=3) as predictor to run a regression model?
Post a Comment