-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error in FUN(X[[i]], ...) : subscript out of bounds #25
Comments
Do you have a longitudinal measurement (i.e., for score) per patient at t = 0?
From: Ben <notifications@github.com>
Sent: Tuesday, November 17, 2020 4:16 PM
To: drizopoulos/JM <JM@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [drizopoulos/JM] Error in FUN(X[[i]], ...) : subscript out of bounds (#25)
Dear prof,
In a large dataset (8081 patients, 69594 measurements) aucJM (JM:::aucJM.jointModel) keeps giving the error below, but if I change Tstart or Tstop slightly, it does work. My data is complete, sorted on id and time of measurement, I have no events on t=0.
Why does it give this error?
AUC90d_base <- aucJM(JM_spline_valslope, longtestsurv, Tstart = 0.0001, Thoriz = 92/365.25, idVar = "id")
Error in FUN(X[[i]], ...) : subscript out of bounds
traceback()
3: lapply(X = X, FUN = FUN, ...)
2: sapply(pi2$summaries, "[", 1, 2)
1: aucJM(JM_spline_valslope, longtestsurv, Tstart = 1e-04, Thoriz = 92/365.25,
idVar = "id")
The JM is speficied as:
survFit <- coxph(Surv(tyrs, binstatus) ~ age10 + femalegender + cluster(id),
data = survtrain, x = TRUE)
lme_splines <- lme(score~ ns(labyrs, df=3)* (age10 + femalegender),
random= list(id = pdDiag(form= ~ns(labyrs, df=3))), data=longtrain)
dform = list(fixed = ~ 0 + dns(labyrs, df=3) + dns(labyrs,df=3):age10 +dns(labyrs,df=3):femalegender,
random = ~ 0 + dns(labyrs, df=3),
indFixed = c(2:4,7:12), indRandom = c(2:4))
#JM
JM_spline_valslope <- jointModel(lme_splines, survFit, timeVar = "labyrs",
method = "spline-PH-aGH", param = "both", derivForm = dform)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdrizopoulos%2FJM%2Fissues%2F25&data=04%7C01%7Cd.rizopoulos%40erasmusmc.nl%7C1123fe6922a34022b9df08d88b0bbf18%7C526638ba6af34b0fa532a1a511f4ac80%7C0%7C0%7C637412229847615192%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MXXonQvsAs%2BDFZgMgS%2Bla7eBpcvxrvXdEnMgtdSB67I%3D&reserved=0>, or unsubscribe<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADE7TT33253ELC24Q3STBQLSQKHUNANCNFSM4TYWPPWA&data=04%7C01%7Cd.rizopoulos%40erasmusmc.nl%7C1123fe6922a34022b9df08d88b0bbf18%7C526638ba6af34b0fa532a1a511f4ac80%7C0%7C0%7C637412229847620173%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UXc%2BltRrnkC4SltJwr0ZKQCBOB7PQiBgyYokG7wGwW8%3D&reserved=0>.
|
yes, each patient starts at t=0 years with a measurement. |
yes, the first occurring event is at t=0.00273 years (0.99 days). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear prof,
In a large dataset (8081 patients, 69594 measurements) aucJM (JM:::aucJM.jointModel) keeps giving the error below, but if I change Tstart or Tstop slightly, it does work. My data is complete, sorted on id and time of measurement, I have no events on t=0.
Why does it give this error?
AUC90d_base <- aucJM(JM_spline_valslope, longtestsurv, Tstart = 0.0001, Thoriz = 92/365.25, idVar = "id")
traceback()
The JM is speficied as:
The text was updated successfully, but these errors were encountered: