table_results.coxph: table_results

Description Usage Arguments Details Value Examples

View source: R/table_results.coxph.R

Description

This version creates a publishable results table from a Cox regression run using the 'survival::coxph' function. Features include:

Usage

1
table_results.coxph(mod, lbls = NULL, tidy = F)

Arguments

mod

A 'coxph' object

lbls

An optional named vector providing readable labels for each predictor variable

tidy

A boolean (default=F) determining if the output is a tidy tibble or a untidy printable table. Use 'tidy = T' if you want to further manipulate the table, or add other results to this table using joins, for example

Details

+ Adding the reference class for each categorical predictor + Choosing to report 95 +

Value

A tibble

Examples

1
library(survival)

webbedfeet/ProjTemplate documentation built on May 29, 2019, 10:50 a.m.