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, returns branch and complementary branch membership of the training data corresponding to the test cases.
Character string specifying the target outcome for multivariate families. If unspecified, a default is selected automatically.
Maximum number of rules extracted per tree.
Maximum number of trees used for rule extraction.
Statistic to output. Options include "importance"
, "complement mean"
, and "oob mean"
.
Return out-of-bag and complementary membership indices for each rule?
Nearest neighbor parameter, used only when newdata
is specified.
Seed for reproducibility.
Enable detailed trace output.
Additional arguments.
Not intended for direct end-user use; primarily designed for internal package operations.
# \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)
# }