-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How add mixed effects to a cox model? #55
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: