survdiff: Test Survival Curve Differences

Description Usage Arguments Value Constraints Examples

Description

Tests if there is a difference between two or more survival curves using the G-rho family of tests, or for a single curve against a known alternative.

Usage

1
2
survdiff(formula, data, subset = TRUE, na.action = getOption("na.action"),
  rho = 0, ...)

Arguments

formula

a formula expression as for other survival models, of the form Surv(time, status) ~ predictor.

data

Wide FLTable or FLTableMD objects

subset

Not currently used

na.action

na values omitted always

rho

a scalar parameter that controls the type of test. For FL objects, supported values are 0(LogRank),1(Peto-Prentice), LogRank,Peto-Prentice,Modified Peto-Prentice,Wilcoxon,Taron-Ware.

...

The additional arguments used by FL function: conf.int the level for a two-sided confidence interval on the survival curve(s). Default is 0.95. whereconditions WhereConditions to subset data GroupBy Column names defining the different groups in data, if any.

Value

A list with class survdiff. A list of survdiff objects if the input is a FLTableMD object.

Constraints

Only single predictor is supported in formula. var is not available in the output. rho values supported are mentioned above.

Examples

1
2
3
fltMD <- FLTableMD("vwWHAS100","DataSetID","ObsID")
resultList <- survdiff(Surv(TIME_VAL,STATUS)~Gender,data=fltMD)
print(resultList[[1]])

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.