Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“aeqSurv exception, an interval has effective length 0” #19

Closed
agstone90 opened this issue Aug 28, 2020 · 7 comments
Closed

“aeqSurv exception, an interval has effective length 0” #19

agstone90 opened this issue Aug 28, 2020 · 7 comments

Comments

@agstone90
Copy link

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"

My survival object uses the survreg function with weeks as my unit of time.

lmefit<-lme(marker~ns(week,3),random=~week|ID, data=Data,control=lmeControl(opt="optim")) survfit<-survreg(Surv(time,status)~covariate,data=Data.id,x=TRUE) fitjoint<-jointModel(lmefit,survfit,timeVar="week")

I haven't been able to get any of the fixes listed here to work. The issue doesn't seem to be one of 2 weeks vs 2.0 weeks. Entering "timefix=FALSE" into the survreg call gets an error for an unused argument, and adding
aeqSurv(survfit, tolerance = sqrt(.Machine$double.eps))
returns an error that survfit isn't a Surv object.

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

Thanks!

@drizopoulos
Copy link
Owner

drizopoulos commented Aug 28, 2020 via email

@agstone90
Copy link
Author

Hi Dr Rizopoulos,

Thank you so much for responding! It does seem to be running now that I've switched to coxph. Is there a reason that one should work and not the other? Given a time-independent covariate, would both produce the same model?

@jinjinzhou
Copy link

Even tried coxph model, I still have this error

@rberch
Copy link

rberch commented Jun 26, 2023

Hi @jinjinzhou, please, did you find a solution to this? I have run into a similar situation.
Thanks

@jinjinzhou
Copy link

Hi @jinjinzhou, please, did you find a solution to this? I have run into a similar situation. Thanks

For my situation, it is related to how I bin my longitudinal markers, i.e., some of them were measured on the same day or even more frequently. I filtered those when Tstart-stop < threshold

@rberch
Copy link

rberch commented Jun 26, 2023

Hi @jinjinzhou, please, did you find a solution to this? I have run into a similar situation. Thanks

For my situation, it is related to how I bin my longitudinal markers, i.e., some of them were measured on the same day or even more frequently. I filtered those when Tstart-stop < threshold

Thank you @jinjinzhou ,

In my case, I am doing a simulation study. I simulate the longitudinal data and survival data (which has the ID, event status, and follow-up time) using simsurv.
And then when I fit the linear mixed model and coxph, they run without errors.
However, when I run the jointModel, that is when I get the error:
Error in aeqSurv(Y) :
aeqSurv exception, an interval has effective length 0
I have searched online for possible solutions but I have not found any.

@mariellabogoni
Copy link

@rberch Did you find a solution? I have the same problem. Thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants