Closed anandhari97 closed 1 year ago
Do you have a reproducible example?
The linear mixed model and relative risk model run well. But when running joint model it gives error. I tried to use methods, such as "piecewise-PH-GH" and "weibull-PH-GH", "spline-PH-GH" but it does not work. it gives the following mistakes: Error in optim(thetas, opt.survSplinePH, gr.survSplinePH, method = "BFGS", : non-finite value supplied by optim.
But on using "weibull-AFT-aGH" method it runs well.
I don't know what is the problem for other methods. I also tried the commands put (iter.EM = 80, tol3 = 1e-09, numeriDeriv = "cd", eps.Hes = 1e-04) these words at the end of my command, but it still gives the similar mistake. Thank you for your time.
The data you sent can be used to reproduce the error.
Hi, I am a beginner in the area of Joint Models in survival analysis. While running R codes for Joint Model for Longitudinal and time to event data, I got the following error:
**Error in optim(thetas, opt.survPC, gr.survPC, method = "BFGS", control = list(maxit = if (it < : non-finite value supplied by optim**
This is my code for linear mixed model, Survival model, and Joint model. **> lmeFit<- lme (FUCEAvalue ~ year + SEX, random = ~ year| ID, data = longi_data.new)
Any information and advice you could give is much appreciated.