Closed tspmgh closed 11 months ago
Hi,
yes, you get the odds ratio by taking the exponential of the coefficients. Here you get a very small coef for 'group1 class3'. This probably means that in latent class 3 you have few subjects with the genetic characteristic 'group1'. So the model is not able to estimate the effect. And the same for 'group3 class2' and 'group3 class3'. Maybe you should keep less levels in your genetic variable, by grouping some levels if it makes sense.
Best,
Viviane
I have created a hlme model with lung function as a function of age, and selected the model with 4 classess.
I am now trying to see how the identified classes relates to an unincluded variable (genetics). Hence, i have created a new hlme with the genetics (4 levels) in the classmb of the model, while keeping the parameters fixed, as explained in previous issues to avoid shifting in classes:
Then, as I understand it, the
exp(coef)
is the odds ratios for the classmb model. Hence, I can get odds ratios and 95% confidence intervals withexp(coef(m4_post))
andexp(confint(m4_post))
.I do not have statistical background, and I am questioning my results and whether this approach is performed correctly? Any guidance will be greatly appreciated.
All the best from a phd-student struggling in solitude with all the doubts and worries that come with the journey :-)