varpro.strength.RdUsed 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 return: "importance" for release
importance, "complement" for the complementary-region
response summary, "oob" for the original-region OOB response
summary, or "none" to omit response summaries.
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.
Object coerced so as to work with other functions in the package.
# \donttest{
## ------------------------------------------------------------
## regression example: boston housing
## ------------------------------------------------------------
## load the data
data(BostonHousing, package = "mlbench")
o <- randomForestSRC::rfsrc(medv~., BostonHousing, ntree=100)
## call varpro.strength
vs <- varpro.strength(object = o, max.rules.tree = 10, max.tree = 15)
## call varpro.strength with test data
vs <- varpro.strength(object = o, newdata = BostonHousing[1:3,], max.rules.tree = 10, max.tree = 15)
# }