Learn R Programming

ggRandomForests (version 1.0.0)

eventtable: Nonparametric survival estimates.

Description

Nonparametric survival estimates.

Usage

eventtable(interval, censor, strat = NULL, data, type = c("kaplan",
  "nelson"), ...)

Arguments

interval
name of the interval variable in the training dataset.
censor
name of the censoring variable in the training dataset.
strat
stratifying variable in the training dataset, defaults to NULL
data
name of the training data.frame
type
one of ("kaplan","nelson"), defaults to kaplan-meier
...
extra arguments passed to kaplan or nelson functions.

Value

  • A gg_survival object created using the non-parametric kaplan-meier or nelson-aalon estimators.

Details

eventtable is a wrapper function for both generating nonparametric survival estimates using either nelson-aalen or kaplan-meier estimates.

See Also

kaplan nelson gg_survival