survTable: Univariable Survival Summary of Categorical Variables

Description Usage Arguments Details Author(s)

View source: R/survTable.R

Description

Provides the median (and CI) survival, mean (and CI) survival, and hazard ratios (and CI) for time to event analyses related to categorical variables.

Usage

1
survTable(data, vars, byVar, timeVar, times = 60)

Arguments

data

A data frame with the variable to be summarized

vars

A character vector of categorical variables to be used as predictors of survival

byVar

A character(1) vector of 0's and 1's indicating whether the subject is censored or experienced the event

timeVar

A character(1) vector giving the name of the variable with the survival time

times

A numeric(1) vector giving the time at which the mean survival should be calculated.

Details

This function is under active development and may change without notice.

Author(s)

Benjamin Nutter


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