Used to parse values from a VarPro object.

varpro.strength(object,
                newdata,
                m.target = NULL,
                max.rules.tree = 150,
                max.tree = 150,
                stat = c("importance", "complement", "oob", "none"),
                membership = FALSE,
                neighbor = 5,
                seed = NULL,
                do.trace = FALSE, ...)

Arguments

object

rfsrc object

newdata

Optional test data. If provided, the output equals the branch and complementary branch membership of the training data corresponding to the test data.

m.target

Character value for multivariate families specifying the target outcome to be used. If left unspecified, the algorithm will choose a default target.

max.rules.tree

Maximum number of rules per tree.

max.tree

Maximum number of trees used for extracting rules.

stat

Determines which statistic is output. Either importance, complement mean, or oob mean.

membership

Return OOB and complementary OOB membership indices for each rule?

neighbor

Nearest neighbor parameter. Only applies when newdata is provided.

seed

Seed for repeatability.

do.trace

Used to obtain detailed trace.

...

Further arguments.

Details

Not intended for end-user use and is primarily meant for internal use by the package.

Examples

  
# \donttest{
## ------------------------------------------------------------
## regression example: boston housing
## ------------------------------------------------------------

## load the data
data(BostonHousing, package = "mlbench")

o <- randomForestSRC::rfsrc(medv~., BostonHousing, ntree=100)

## call varpro.strength
varpro.strength(object = o, max.rules.tree = 10, max.tree = 15)

## call varpro.strength with test data
varpro.strength(object = o, newdata = BostonHousing[1:3,], max.rules.tree = 10, max.tree = 15)

# }