m3 <- INLAjoint::joint(
formLong = list(Y2 ~ age + weekend + gender + (1 | ID_hosp) #GLMM
),
formSurv = inla.surv(time = I(los/365.25), event = Y1) ~ gender + age + weekend, # survival
dataLong = data,
dataSurv = data,
id = "ID_hosp",
timeVar = "",
corLong = FALSE,
family = "binomial",
basRisk = "weibullsurv",
assoc = c("SRE"),
control = list(int.strategy="eb",dic = TRUE, cpo = TRUE)
)
On 13 Dec 2024, at 15:23, Felipe Barletta <felipe.e...@gmail.com> wrote:
Hello INLA group.I fitted a joint model (Binomial and weibull survival model) with some association structures and some log Conditional predictive ordinates (LCPO) are negative, like table below:
<image.png>I expected to find LCPO positive and close values between DIC and WAIC. I have been surprised to find very large differences in several models.Someone has idea where is the mistake? For example, below the code to model III is:m3 <- INLAjoint::joint( formLong = list(Y2 ~ age + weekend + gender + (1 | ID_hosp) #GLMM ), formSurv = inla.surv(time = I(los/365.25), event = Y1) ~ gender + age + weekend, # survival dataLong = data, dataSurv = data, id = "ID_hosp", timeVar = "", corLong = FALSE, family = "binomial", basRisk = "weibullsurv", assoc = c("SRE"), control = list(int.strategy="eb",dic = TRUE, cpo = TRUE) )
--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/r-inla-discussion-group/CAJz4ZjEvQpNSoiTbZda5yxOqUp0iDkZFFW-PTNK5pe_p-0uv_w%40mail.gmail.com.
On 13 Dec 2024, at 16:03, Felipe Barletta <felipe.e...@gmail.com> wrote: