therneau / survival

Survival package for R
394 stars 106 forks source link

Double frailty hard crashes R #283

Closed FBartos closed 2 weeks ago

FBartos commented 1 month ago

Hi,

adding two fraily terms hard crashes R (tested on Windows 11 and Linux)

library(survival)
lungA <- lung
lungA$xxx <- sample(c("A", "B", "C"), nrow(lung), replace=TRUE)
coxph(Surv(time, status) ~ age + frailty(inst) + frailty(xxx), lungA)

Cheers, Frantisek

therneau commented 2 weeks ago

The code was never designed nor intended for multiple frailty terms. I will add a check and error message.