Learn R Programming

GNAR (version 1.1.4)

residuals.GNARfit: Function to return residuals of GNARfit objects

Description

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

Usage

# S3 method for GNARfit
residuals(object,...)

Value

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

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.

Examples

Run this code
#get the residuals of the fiveNode GNAR fit
residuals(GNARfit())

Run the code above in your browser using DataLab