drizopoulos / JMbayes2

Extended Joint Models for Longitudinal and Survival Data
https://drizopoulos.github.io/JMbayes2/
78 stars 22 forks source link

no events in the interval [Tstart, Thoriz) #84

Closed bbb801 closed 7 months ago

bbb801 commented 7 months ago

Dear Sir,

I am using tvROC to compute AUC in the testing set with the model trained in the training set . However, I encountered an error when I set Tstart = 0 (Dt=8). It said 'it seems that there are no events in the interval [Tstart, Thoriz)'. When I set Tstart = 3 (Dt=5) or Tstart = 3 (Dt=8), it had no error. It is weird that no events in the interval [Tstart=0, Thoriz=0+8), while it had events in the interval [Tstart=3, Thoriz=3+5). Moreover, it seems that Tstart = 0 always results in an error in an data. Any suggestion? My minimun follow-up time is 0 and minimun survival time is 0.03285.

image

drizopoulos commented 7 months ago

For the subjects who have an event in the interval (Tstart, Tstart + Dt), you should check if they have any longitudinal measurements at and before Tstart. Also, you could try setting Tstart = 0.0001.

bbb801 commented 6 months ago

Should all first longitudinal measurements be at and before Tstart? It seems most of my first longitudinal measurements are after the admission date.

drizopoulos commented 6 months ago

Yes, you need to have longitudinal data before Tstart.

bbb801 commented 6 months ago

Thank you. My baseline date is the hospital admission. Longitudinal data is the lab test events. What if the first lab tests are normally over the admission date? If it is still workable to use your model?

获取 Outlook for Androidhttps://aka.ms/ghei36


From: Dimitris Rizopoulos @.> Sent: Thursday, February 22, 2024 4:51:04 PM To: drizopoulos/JMbayes2 @.> Cc: LIU Jundong @.>; Author @.> Subject: [Ext] Re: [drizopoulos/JMbayes2] no events in the interval [Tstart, Thoriz) (Issue #84)

CAUTION: External email. Do not reply, click on links or open attachments unless you recognize the sender and know the content is safe.

Yes, you need to have longitudinal data before Tstart.

― Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/JMbayes2/issues/84#issuecomment-1958973614, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMPCDZMCD2KESCYBIRF7VH3YU4BHRAVCNFSM6AAAAABDBK7IY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJYHE3TGNRRGQ. You are receiving this because you authored the thread.Message ID: @.***>