I am using the lcmm package to identify latent classes. I encountered two problems.
I run the hlme() function on longitudinal outcome for anxiety z score. The original z score outcome has a minimum of -1.76 and a maximum of 5.80. When I plot the predicted trajectories, one trajectory decreased to lower than -10. I was wondering if the predictY showed the exact predicted z score and how to interpret the predicted trajectory for the z score.
Here are my code and plot.
The plot was different from my predicted trajectory in terms of the trajectory and x axis values. Could you please let me know how to solve this problem.
Thank you very much in advance for your help with this issue and kind regards,
Esther
Hi @CecileProust-Lima, @VivianePhilipps,
Thank you very much for developing package.
I am using the lcmm package to identify latent classes. I encountered two problems.
I run the hlme() function on longitudinal outcome for anxiety z score. The original z score outcome has a minimum of -1.76 and a maximum of 5.80. When I plot the predicted trajectories, one trajectory decreased to lower than -10. I was wondering if the predictY showed the exact predicted z score and how to interpret the predicted trajectory for the z score. Here are my code and plot.
l![image 1](https://github.com/CecileProust-Lima/lcmm/assets/173618185/60e9b43c-ad8e-4f50-a656-e4d8b7e22040)
I followed the code in the vignette to plot Graph of the predictions versus observations.
plot(lcga2, which="fit", var.time="Time", marg=FALSE, shades = TRUE)
The plot was different from my predicted trajectory in terms of the trajectory and x axis values. Could you please let me know how to solve this problem.
Thank you very much in advance for your help with this issue and kind regards, Esther