I am running a joint model in R using the JM package. I have been receiving an error when I ran this code:
*jointFit<- jointModel(lmeFit, coxFit, timeVar="mesure", method='piecewise-PH-aGH")*
The errror is:
Error in jointFit<- jointModel(lmeFit, coxFit, timeVar="mesure", method='piecewise-PH-aGH"): sample sizes in the longitudinal and event processes differ; maybe you forgot the cluster() argument.