Skip to content
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

Survival models with flexible baseline hazards and frailties #346

Open
canuckafar opened this issue Feb 14, 2021 · 0 comments
Open

Survival models with flexible baseline hazards and frailties #346

canuckafar opened this issue Feb 14, 2021 · 0 comments

Comments

@canuckafar
Copy link

I have a survival model that requires a flexible baseline hazard (like the Royston-Parmar, for example) and a shared frailty term. Presently, flexsurv cannot handle frailties and most packages that handle frailties cannot handle flexible baseline hazards. However rstanarm can handle both and I have fit a model like:

stan_surv(Surv(time, event) ~ covariate + (1 | shared.frailty), basehaz = 'ms')

where ms specifies an M-spline on the hazard and the shared.frailty variable identifies the clusters in my data. I would like to use this model as input for heemod. Is this possible or are flexsurv models the only way to compute a Healthy-Sick-Dead model in heemod?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant