View source: R/varpro.strength.R
varpro.strength | R Documentation |
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, ...)
object |
|
newdata |
Optional test data. If provided, returns branch and complementary branch membership of the training data corresponding to the test cases. |
m.target |
Character string specifying the target outcome for multivariate families. If unspecified, a default is selected automatically. |
max.rules.tree |
Maximum number of rules extracted per tree. |
max.tree |
Maximum number of trees used for rule extraction. |
stat |
Statistic to output. Options include |
membership |
Return out-of-bag and complementary membership indices for each rule? |
neighbor |
Nearest neighbor parameter, used only when |
seed |
Seed for reproducibility. |
do.trace |
Enable detailed trace output. |
... |
Additional arguments. |
Not intended for direct end-user use; primarily designed for internal package operations.
## ------------------------------------------------------------
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.