Learn R Programming

pammtools (version 0.7.3)

tidy_fixed: Extract fixed coefficient table from model object

Description

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

Usage

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

Run this code
library(survival)
gc <- coxph(Surv(days, status)~age + sex, data = tumor)
tidy_fixed(gc)

Run the code above in your browser using DataLab