fc_diff {failCompare}R Documentation

Log-rank test of two data sets

Description

A log-rank test of two data sets using the "survival" package

Usage

fc_diff(data, time, group, censorID = NULL)

Arguments

data

dataframe containing all variables

time

numeric failure times

group

character or factor grouping variable

censorID

logical vector the same length as "time" indicating censored observations

Value

Returns the results of a log-rank test for comparing two survival distributions.


[Package failCompare version 1.0.0 Index]