Closed annette987 closed 6 years ago
Do you have the same problem with methods "piecewise-PH-aGH" or "spline-PH-aGH"?
Yes, a similar problem. For those two methods the error message I get is:
Error in if (t1 || t2) { : missing value where TRUE/FALSE needed
For piecewise-PH-aGH it happens on the 3rd iteration and for spline-PH-aGH it happens on the 1st.
It is a scaling issue for the regression coefficients. If you transform your time to years, the model converges, i.e.,
cox_long$tstart <- cox_long$tstart / 365
cox_wide$duration <- cox_wide$duration / 365
ctrl <- lmeControl(opt='optim')
bloodfit <- lme(Age ~ tstart + tstart:Urate, random = ~ tstart | ID,
control = ctrl, data = cox_long)
coxphobject <- coxph(Surv(duration, cstatus) ~ Urate, data = cox_wide, x = TRUE)
jmfit <- jointModel(bloodfit, coxphobject, method = "piecewise-PH-aGH",
timeVar = "tstart", verbose = TRUE, iter.EM = 200)
summary(jmfit)
Hi, Thank you for this amazing software. Unfortunately I am having trouble getting it to run on my own data. When I run the code below (modelled on one of your examples) I get the following error message from JointModel():
This is my code:
I have attached a small subset of my data. It crashes after iteration 6. I am using R 3.5.1. Thanks for your help. Annette data.zip