Given a model object, returns a data frame with columns variable, coef (coefficient), ci_lower (lower 95\ ci_upper (upper 95\

tidy_fixed(x, ...)

# S3 method for gam
tidy_fixed(x, intercept = FALSE, ...)

# S3 method for coxph
tidy_fixed(x, ...)

Arguments

x

A model object.

...

Currently not used.

intercept

Should intercept also be returned? Defaults to FALSE.

Examples

library(survival) gc <- coxph(Surv(days, status)~age + sex, data = tumor) tidy_fixed(gc)
#> # A tibble: 2 x 4 #> variable coef ci_lower ci_upper #> <chr> <dbl> <dbl> <dbl> #> 1 age 0.0246 0.0148 0.0345 #> 2 sexfemale 0.153 -0.0582 0.365