drizopoulos / JM

Joint Models for Longitudinal & Survival Data under Maximum Likelihood
34 stars 7 forks source link

Error in aeqSurv(Y) : aeqSurv exception, an interval has effective length 0 #37

Closed amirabadiza921 closed 2 years ago

amirabadiza921 commented 2 years ago

Hi Dr. Rizopoulos,

Like a few of the commentors below, I am having an issue with getting my joint model to run, receiving an error "Error in aeqSurv(Y) : aeqSurv exception, an interval has effective length 0"

fit.lm1<-lme(TSH_~ time1,random= ~time1 | code,data=dataLong) model.cox<-coxph(Surv(time_event_yr,DM4)~BMI_3,data=data,x=T,model=TRUE) summary(model.cox) aeqSurv(model.cox, tolerance = sqrt(.Machine$double.eps) Error in aeqSurv(model.cox, tolerance = sqrt(.Machine$double.eps)) : argument is not a Surv object

Any advice for how to get my model to run would be very appreciated!

Thanks!