residuals.brokenstick: Extract residuals from brokenstick model

View source: R/residuals.R

residuals.brokenstickR Documentation

Extract residuals from brokenstick model

Description

Extract residuals from brokenstick model

Usage

## S3 method for class 'brokenstick'
residuals(object, newdata = NULL, ...)

Arguments

object

A brokenstick object.

newdata

Optional. A data frame in which to look for variables with which to predict. The training data are used if omitted and if object$light is FALSE.

...

Additional arguments. Ignored.

Value

A numerical vector with residuals The number of elements equals the number of rows in newdata. If newdata is not specified, the function looks for the training data in object as the element named data.

See Also

Other brokenstick: fitted.brokenstick()


brokenstick documentation built on March 31, 2023, 9:24 p.m.