predict.ranger.forest: Ranger prediction
Description
Prediction with new data and a saved forest from Ranger.Usage
## S3 method for class 'ranger.forest':
predict(object, data, predict.all = FALSE,
seed = NULL, num.threads = NULL, verbose = TRUE, ...)
Arguments
object
Ranger ranger.forest
object.
data
New test data of class data.frame
or gwaa.data
(GenABEL).
predict.all
Return a matrix with individual predictions for each tree instead of aggregated predictions for all trees (classification and regression only).
seed
Random seed used in Ranger.
num.threads
Number of threads. Default is number of CPUs available.
verbose
Verbose output on or off.
...
further arguments passed to or from other methods.
Value
- Object of class
ranger.prediction
with elements
ll{
predictions
Predicted classes/values (only for classification and regression)
unique.death.times
Unique death times (only for survival).
chf
Estimated cumulative hazard function for each sample (only for survival).
survival
Estimated survival function for each sample (only for survival).
num.trees
Number of trees.
num.independent.variables
Number of independent variables.
treetype
Type of forest/tree. Classification, regression or survival.
num.samples
Number of samples.
}