fitted.ppmodel: Fitted (in-sample) predictions from a ppforest2 model.

View source: R/ppmodel.R

fitted.ppmodelR Documentation

Fitted (in-sample) predictions from a ppforest2 model.

Description

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.

See Also

residuals.ppmodel, oob_predictions


ppforest2 documentation built on July 21, 2026, 9:07 a.m.