Open casasgomezuribarri opened 1 year ago
further reference, in case it's helpful:
https://stats.oarc.ucla.edu/r/dae/mixed-effects-cox-regression/
Hi @casasgomezuribarri, apologies for the delayed response. Mixed effects are not currently supported by this package though it's something I'd like to incorporate eventually.
I want to add random effects to my Cox model formulation, and I have noticed that
produces the following error:
but this syntax is allowed in
@formula
(i.e., the following works fine):I assume mixed effects aren't supported in
coxph
?For reference, random effects in survival analysis are often referred to as 'frailty terms' (in fact, I think in R they are added as
frailty(D)
as opposed to1|D
, but I'm not sure.Is this something that is supported but I'm just doing it wrong?