tidy_fixed {pammtools}R Documentation

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 class 'gam'
tidy_fixed(x, intercept = FALSE, ...)

## S3 method for class '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)

[Package pammtools version 0.5.93 Index]