CecileProust-Lima / lcmm

R package lcmm
https://CecileProust-Lima.github.io/lcmm/
55 stars 13 forks source link

hlme vs. lcmm function for non-Guassian outcomes #208

Closed hildebtb closed 1 year ago

hildebtb commented 1 year ago

Is it possible to utilize a non-Guassian link for Y outcomes using the hlme() function. I see in the vingette the link='splines' for lcmm(). However, if there were known floor effect in your MMSE example that emerged over time, I am not sure how to capture this distribution (or even if possible) in gridsearch(hlme()) approach.

CecileProust-Lima commented 1 year ago

lcmm is a version of hlme that is appropriate for Gaussian outcomes (as hlme) and non-Gaussian outcomes. It thus has a larger scope than hlme. If you have an issue of departure from normality, you should use lcmm. Note that the specification is exactly the same, except you have to add this link argument. lcmm has been initially motivated to account for floor and ceiling effects of outcomes so this should be great for you.

The girdsearch is something unrelated to the distribution of the outcome. This is a grid of runs to apply in the case where you assume different latent classes in your data. You should find details in the vignette.

Cécile

hildebtb commented 1 year ago

Cécile,

Thank you for the clarification. I am wondering if it is possible to specific different trajectories (linear vs. quadratic) within the same model. For example, a two class solution where one class represents a linear stable change over time and a second class indicates a quadratic change. I can estimate the model where all classes are either linear or quadratic, but not the combination.

Thank you, Tom

On Fri, Aug 25, 2023 at 3:12 AM Cécile Proust-Lima @.***> wrote:

lcmm is a version of hlme that is appropriate for Gaussian outcomes (as hlme) and non-Gaussian outcomes. It thus has a larger scope than hlme. If you have an issue of departure from normality, you choose use lcmm. Note that the specification is exactly the same, except you have to add this link argument. lcmm has been initially motivated to account for floor and ceiling effects of outcomes so this should be great for you.

The girdsearch is something unrelated to the distribution of the outcome. This is a grid of runs to apply in the case where you assume different latent classes in your data. You should find details in the vignette.

Cécile

— Reply to this email directly, view it on GitHub https://github.com/CecileProust-Lima/lcmm/issues/208#issuecomment-1692879982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7JIAVYVHVSS2BRSXGHXFLXXBF47ANCNFSM6AAAAAA3QRBDJY . You are receiving this because you authored the thread.Message ID: @.***>

CecileProust-Lima commented 1 year ago

If you want to specify a linear and a quadratic trajectory depending on the class, you will have to do this by fixing parameters (the t^2 parameters for the classes desired as linear) at 0 in posfix argument. Cécile

p1981thompson commented 1 year ago

How is a parameter estimate from the longitudinal model interpreted from lcmm(... ,link="thresholds") if I have a 3 category outcome variable? Say for example I have an estimated parameter est =-0.30, se=0.12, wald=-2.60, p=.01. Is this converted to an odds ratio or interpreted directly?

CecileProust-Lima commented 1 year ago

Hi, we rely on a cumulative probit model, not a logistic model but the transformations are very close. OR are in logistic regressions. For ordinal outcomes with probit models, there is no direct OR or RR as far as I know. You can interpret the direction though and the p-value. Then, if you want to make comparisons, probably predictions of trajectories according to profiles of covariates is the best option. Cécile