Learn R Programming

treemisc (version 0.0.1)

predict.rforest: Random forest predictions

Description

Compute predictions from an "rftree" object.

Usage

# S3 method for rforest
predict(object, newX, predict.all = FALSE, ...)

Value

A vector of predictions. For binary outcomes coded as 0/1, the predictions represent Pr(Y = 1).

Arguments

object

An object of class "rftree".

newX

Data frame or matrix of new feature values.

predict.all

Logical indicating whether or not to return predictions for each individual tree. Default is FALSE, which only returns the aggregated predictions.

...

Additional optional arguments. (Currently ignored.)