Skip to contents

Returns predictions on the training data — a factor for classification, a numeric vector for regression. For forests, training predictions are optimistic; use oob_predictions() for an honest estimate.

Usage

# S3 method for class 'ppmodel'
fitted(object, ...)

Arguments

object

A pptr or pprf model.

...

Unused.

Value

A factor (classification) or numeric vector (regression), length equal to the number of training observations.