fc_diff {failCompare} | R Documentation |
A log-rank test of two data sets using the "survival" package
fc_diff(data, time, group, censorID = NULL)
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 |
Returns the results of a log-rank test for comparing two survival distributions.