subscreenvi: (iii) Determine variable importance

Description Usage Arguments Value Examples

View source: R/subscreenvi.R

Description

Determine variable importance for continuous, categorical or right-censored survival endpoints (overall and per treatment group) using random forests

Usage

1
subscreenvi(data, y, cens = NULL, x = NULL, trt = NULL, ...)

Arguments

data

The data frame containing the dependent and independent variables.

y

The name of the column in data that contains the dependent variable.

cens

The name of the column in data that contains the censoring variable, if y is an event time (default=NULL).

x

Vector that contains the names of the columns in data with the independent variables (default=NULL, i.e. all remaining variables)

trt

The name of the column in data that contains the treatment variable (default=NULL).

...

additional arguments to be passed to function rfsrc

Value

A list containing ordered data frames with the variable importances (one for each treatment level, one with the ranking variability between the treatment levels and one with the total results)

Examples

1
2
3
4
5
6
7
## Not run: 
require(survival)
data(pbc)
pbc$status <- ifelse(pbc$status==0,0,1)
importance <- subscreenvi(data=pbc, y='time', cens='status', trt='trt', x=NULL)

## End(Not run)

subscreen documentation built on July 31, 2020, 1:06 a.m.