residuals.GNARfit: Function to return residuals of GNARfit objects

Description Usage Arguments Details Value Examples

View source: R/residuals.GNARfit.R

Description

residuals.GNARfit returns the residuals of a GNARfit object as a matrix.

Usage

1
2
## S3 method for class 'GNARfit'
residuals(object,...)

Arguments

object

the output of a GNARfit call

...

additional arguments, unused here.

Details

The function first checks if the object is of GNARfit class, then uses residToMat to return the residuals.

Value

residuals.GNARfit returns a 'ts' object of residuals, with t-alphaOrder rows and nnodes columns.

Examples

1
2
#get the residuals of the fiveNode GNAR fit
residuals(GNARfit())

nunesmatt/GNAR documentation built on Oct. 29, 2019, 4:25 p.m.