drizopoulos / JMbayes

Joint Models for Longitudinal and Survival Data using MCMC
58 stars 23 forks source link

Question about recurrent events model specificaition #92

Closed jpkrooney closed 2 years ago

jpkrooney commented 2 years ago

Hi Dimitris, Just looking through the vignette: https://drizopoulos.github.io/JMbayes2/articles/Recurring_Events.html

For the cox model specification: cox_fit <- coxph(Surv(tstart, tstop, status) ~ (group + age) : strata(strata), data = cox_data)

I notice the id argument is not specified here - is this not required for recurrent events model ? Many thanks, James

drizopoulos commented 2 years ago

Indeed, it is not required because it is recognized from the strata variable. That is, the first stratum corresponds to the recurrent events and the second stratum to a potential terminating event.

P.s., this question is for JMbayes2 not JMbayes.