survTableComplex: Univariable Summary of Survival Analyses

Description Usage Arguments Details Author(s)

View source: R/survTable2.R

Description

Provides a summary table of univariable survival metrics. The default summaries include summary values similar to cattable and conttable, but also includes the hazard ratio, p-value, and the median survival. Additionally, the survival proportions for user specified time points may be given.

Usage

1
2
survTableComplex(data, vars, byVar, time.var, times = NULL, vars.cat,
  event.level, normal = NULL, quartile = TRUE, row.p = FALSE)

Arguments

data

A data frame

vars

Variables to be summarized

byVar

The event variable. May be 0/1 or a two category factor/character

time.var

Variable giving the survival time

times

The times argument passed to summary.survfit

vars.cat

Numeric variables in 'vars' to force as categorical variables

event.level

For non-numeric byVar, specifies the level to be considered the event.

normal

a character vector naming numeric variables to be summarized by mean and standard deviation.

quartile

Should non-normal numeric variables be summarized with the interquartile range. If FALSE, the range is printed.

row.p

For categorical variables, should the percentage show the row percentage?

Details

The table produced is similar to the cattable format, but the output may not be as flexible.

Author(s)

Benjamin Nutter


nutterb/junkyard documentation built on May 24, 2019, 10:51 a.m.