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

coxph with frailty models fails when conf.int=TRUE #899

Closed
matthieu-faron opened this issue Jul 16, 2020 · 4 comments
Closed

coxph with frailty models fails when conf.int=TRUE #899

matthieu-faron opened this issue Jul 16, 2020 · 4 comments

Comments

@matthieu-faron
Copy link

matthieu-faron commented Jul 16, 2020

Hi, thank you for the great work on the broom package

I'am using CRAN broom 0.7.0

I'am triyng a coxph model with a frailty term. When using tidy without conf.int = TRUE, everything works properly

library(survival)
library(broom)

model <- coxph(Surv(time, status) ~ age + sex + frailty(inst), lung)
tidy(model, conf.int = FALSE)

But when using conf.int = TRUE, it returns an errors

model <- coxph(Surv(time, status) ~ age + sex + frailty(inst), lung)
tidy(model, conf.int = TRUE)

Note that if your coxphmodel only has one variable, the confidence interval will recycle when the function binds the conf int with the coefficients.

model <- coxph(Surv(time, status) ~ age + frailty(inst), lung)
tidy(model, conf.int = TRUE)

I guess the conf.int should be [NA-NA] for the frailty term ?
I may be able to contribute a solution but I'am not very used to github...
Kind regards

@simonpcouch

This comment has been minimized.

@alexpghayes
Copy link
Collaborator

alexpghayes commented Jul 20, 2020 via email

@simonpcouch
Copy link
Collaborator

Closing in favor of #966! Thanks for yalls patience here. :-)

@github-actions
Copy link

github-actions bot commented Mar 6, 2021

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants