multiResiduals: Calculate the residuals from all component models of a...

View source: R/caretEnsemble.R

multiResidualsR Documentation

Calculate the residuals from all component models of a caretEnsemble.

Description

This function calculates raw residuals for both regression and classification train objects within a caretEnsemble.

Usage

multiResiduals(object, ...)

Arguments

object

a caretEnsemble to make predictions from.

...

other arguments to be passed to residuals

Value

A data.frame in the long format with columns for the model method, the observation id, yhat for the fitted values, resid for the residuals, and y for the observed value.


zachmayer/caretEnsemble documentation built on Sept. 28, 2023, 8:22 p.m.