Produces a table with univariate results of COX models for various covariates.

UnivariateCoxTable(DFR, COLUMNS, TIMES, STATUS, SORT = T, DIGITS = 3)

Arguments

DFR

data.frame containing the time to event and the covariates

COLUMNS

vector of covariate names in DFR

TIMES

EITHER Time to event variable of class "Surv" OR time component of time to event

STATUS

status component von time to event (needed only if TIMES is not of class "Surv")

SORT

=T, sort by p.value?

DIGITS

=3, round to DIGITS

Value

data.frame with univariate results

Details

UnivariateCoxTable

Examples

if (FALSE) { require(MASS) UnivariateCoxTable(VA,"stime","status", COLUMNS=c("treat","age","Karn","prior")) UnivariateCoxTable(VA,"stime","status", COLUMNS=c("treat","age","Karn","prior"),SORT=F,DIGITS=2) }