drizopoulos / JM

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

Error in aeqSurv(Y) #14

Closed statwonk closed 3 years ago

statwonk commented 5 years ago

I don't currently have a reproducible example in hand, though I'll work on one.

I'm running into this error message having called jointModel,

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

I tracked the aeqSurv call down to coxph here. I noticed really large values in the Time variable passed to initial.surv. I tracked these down to this spot.

I'm wondering about the reason for the exp here?

Time <- exp(survObject$y[, 1])
drizopoulos commented 3 years ago

Could you try changing the time scale to, e.g., years. Do you provide a coxph or survreg object in joinModel()?

rberch commented 1 year ago

@drizopoulos , @statwonk Please, I have the same error. Did you find a way to fix this?