Learn R Programming

tswge (version 2.1.0)

backcast.wge: Calculate backcast residuals

Description

This function takes either a fitted (or true) model for the realization x and calculates the residuals using the backcasting procedure

Usage

backcast.wge(x, phi = 0, theta = 0, n.back = 50)

Value

The n backcast residuals are returned

Arguments

x

realization

phi

AR coefficients

theta

MA coefficients

n.back

Backcast to X(-n.back)

Author

Wayne Woodward

References

Chapter 7 of Applied Time Series Analysis with R, second edition by Woodward, Gray, and Elliott

Examples

Run this code
data(fig6.2nf)
          backcast.wge(fig6.2nf,phi=c(1.2,-.6),theta=.5,n.back=50)

Run the code above in your browser using DataLab