residuals.QuadrupenFit: Extract model residuals

View source: R/quadrupen-S3Methods.R

residuals.QuadrupenFitR Documentation

Extract model residuals

Description

Extracts model residuals from a QuadrupenFit object

Usage

## S3 method for class 'QuadrupenFit'
residuals(object, newx = NULL, newy = NULL, ...)

Arguments

object

a QuadrupenFit object

newx

matrix of new covariates for out-of-sample residuals. Must be provided together with newy. If NULL (default), training residuals are returned.

newy

vector of new responses for out-of-sample residuals. Must be provided together with newx. If NULL (default), training residuals are returned.

...

not used, only here for S3 compatibility

Value

Matrix of residuals, each column corresponding to a value of lambda1.


quadrupen documentation built on Sept. 18, 2026, 1:06 a.m.