Learn R Programming

tfarima (version 0.4.1)

residuals.um: Residuals of the ARIMA model

Description

residuals computes the exact or conditional residuals.

Usage

# S3 method for um
residuals(object, z = NULL, method = c("exact", "cond"), envir = NULL, ...)

Value

An object of class um.

Arguments

object

an object of class um.

z

an object of class ts.

method

exact/conditional residuals.

envir

environment in which the function arguments are evaluated. If NULL the calling environment of this function will be used.

...

additional arguments.

Examples

Run this code
z <- AirPassengers
airl <- um(z, i = list(1, c(1, 12)), ma = list(1, c(1, 12)), bc = TRUE)
r <- residuals(airl)
summary(r)

Run the code above in your browser using DataLab