plot.variable {randomSurvivalForest}R Documentation

Plot of Ensemble Survival Effect of Predictors

Description

Plot of ensemble mortality for each predictor.

Usage

    plot.variable(x,
                  plots.per.page = 4,
                  granule = 25,
                  prednames = NULL,
                  main = deparse(substitute(x)),
                  ...)

Arguments

x An object of class randomSurvivalForest, as that created by the function rsf.
plots.per.page Integer value controlling page layout.
granule Integer value controlling whether a plot for a specific predictor should be given as a boxplot or scatter plot. Larger values coerce boxplots.
prednames Character vector of predictor names. Only these predictors will be plotted.
main Plot title.
... Further arguments passed to or from other methods.

Details

The ensemble mortality is plotted against each predictor used in growing the forest. Ensemble mortality values (vertical axis) should be interpreted in terms of total number of deaths. For example, if individual i has a mortality value of 100, then if all individuals had the same predictor as i, there would be 100 deaths in the dataset (on average).

Author(s)

Hemant Ishwaran hemant.ishwaran@gmail.com and Udaya B. Kogalur ubk2101@columbia.edu

References

H. Ishwaran and Udaya B. Kogalur (2006). Random Survival Forests. Cleveland Clinic Technical Report.

See Also

rsf, print.rsf, plot.ensemble, plot.error, plot.proximity.

Examples

  data(veteran,package = "randomSurvivalForest") 
  v.out <- rsf(Survrsf(time,status)~., veteran, ntree = 1000)
  plot.variable(v.out)
  plot.variable(v.out, plots.per.page = 2, granule = 5,
                prednames = c("trt", "karno", "age"))

[Package randomSurvivalForest version 1.0.0 Index]