Closed wy2020hku closed 1 year ago
Hi,
sorry, I don't understand your permut_sub function. The permut function already does the permutation, even in the pprob output, so you don't need to order it manually.
According to the shapes of your trajectories, I guess you are using splines. Please make sure to specify the knots, as explain in #28. If the knots are not specified, the predictions are generally not correct.
Viviane
Dear Viviane,
Thank you for your timely reply!
For the permut function, I changed the parameter "estim" to be "True" and get all the orders updated. This (estim=F when I run it before) should be the reason of my wrong orders. I though estim=T will repeat the whole model again and thus cost long time, but surprisingly it seems only use several iterations and cost much fewer time than the jointlcmm modelling step.
For the predictY function problem, yes I am using splines with specifying only "df" instead of knots. I read #28 and roughly understand the reason. I will try to speficy knots for the ns() function.
Best, Yuan
Dear Cécile and Viviane,
Thank you for your help to answer questions! I have encountered some problem when plotting the fitted jointlcmm models.
code for pred 1:
code for pred 2:
(The time variable in the dataset include separate values: 0.5, 1.5, 2.5, ..., 12.5.)
When I looked at the predicted values, I found that pred 1 for time=0.5 equals to pred 2 for time=5. Did I made any mistake when using predictY function?
Best, Yuan