This function calculates the variable importance of an SDForest and the out-of-bag performance for different complexity parameters.
# S3 method for class 'SDForest'
regPath(object, cp_seq = NULL, X = NULL, Y = NULL, Q = NULL, copy = TRUE, ...)
an SDForest object
A sequence of complexity parameters. If NULL, the sequence is calculated automatically using only relevant values.
The training data, if NULL the data from the forest object is used.
The training response variable, if NULL the data from the forest object is used.
The transformation matrix, if NULL the data from the forest object is used.
Whether the tree should be copied for the regularization path. If FALSE, the pruning is done in place and will change the SDForest. This might be reasonable, if the SDForest is to large to copy.
Further arguments passed to or from other methods.
An object of class paths
containing
The sequence of complexity parameters.
A matrix
with the variable importance
for each complexity parameter.
A matrix
with the out-of-bag performance
for each complexity parameter.
The complexity parameter with the lowest out-of-bag performance.
Path type