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, ...)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.
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