LogRankTab: Log rank test p value and other summary statistics for...

Description Usage Arguments Note Author(s) Examples

Description

This function takes time to event outcome, and one categorical variable (parameter var). It generates log rank p value comparing different groups, and summary statistics

Usage

1
2
LogRankTab(data, tte, cens, var, time.unit = "month",
  surv.conf.type = "plain", ties = "efron", fillname = "")

Arguments

data

Input data frame. Rows are patients and columns are variables (e.g. demographics variables, time to event variables, biomarker variables, treatment indicator, etc.). One patient per row.

tte

column name that indicates the time to event variable

cens

column name that indicates the censoring variable associated to tte. 1 indicates event and 0 indicates censoring

var

a vector that indicates variables of interest. Hazard ratio, CI and pvalue of these variables will be calculated. All elements in var should be also in input data's column names. It will be ignored if fit or form is not null.

time.unit

Default is month.

surv.conf.type

confidence interval type. Default is "plain". see conf.type in survfit

ties

Default is "efron". To match internal sas results, use "exact". See parameter "ties" in coxph.

fillname

(character) variable specifying the content for the cell that located in row one and column one, the default value for fillname is NULL.

Note

This function takes time to event outcome, and one categorical variable (parameter var). This function generates a table that contains number of patients, median time to event, and log rank test p value ( against first level in var) For more general time to event modeling, see function CoxTab() (e.g. continuous factor, multiple factors, stratification, hazard ratio estimation, etc)

Author(s)

Ning Leng leng.ning@gene.com, Alexey Pronin pronin.alexey@gene.com, and previous team members (see DESCRIPTION)

Examples

1
2
data(input)
LogRankTab(data=input,tte="PFS", cens="PFS.event",var="Arm")

lengning/gClinBiomarker documentation built on May 9, 2019, 2:55 p.m.