residuals.trendfilter: Residuals of a trend filtering model

View source: R/methods-stats.R

residuals.trendfilterR Documentation

Residuals of a trend filtering model

Description

Get residuals from a "trendfilter" object.

Usage

## S3 method for class 'trendfilter'
residuals(object, ...)

Arguments

object

Object of class "trendfilter".

...

Additional named arguments.

Details

As of now, the additional named arguments that may be passed are:

lambda

One or more lambda values to compute model residuals for. By default, residuals are computed for every model in object$lambda.

x_eval

Vector of inputs where the trend filtering model(s) will be evaluated. By default, x_eval = object$x.

zero_tol

(For experts) Threshold parameter that controls the point at which a small coefficient value is set to zero. Defaults to zero_tol = 1e-10.


capolitsch/trendfiltering documentation built on May 7, 2023, 3:31 a.m.