varpro.strength.Rd
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, ...)
rfsrc object
Optional test data. If provided, the output equals the branch and complementary branch membership of the training data corresponding to the test data.
Character value for multivariate families specifying the target outcome to be used. If left unspecified, the algorithm will choose a default target.
Maximum number of rules per tree.
Maximum number of trees used for extracting rules.
Determines which statistic is output. Either importance, complement mean, or oob mean.
Return OOB and complementary OOB membership indices for each rule?
Nearest neighbor parameter. Only applies when
newdata
is provided.
Seed for repeatability.
Used to obtain detailed trace.
Further arguments.
Not intended for end-user use and is primarily meant for internal use by the package.
# \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)
# }