Learn R Programming

tswge (version 2.1.0)

true.arma.spec.wge: True ARMA Spectral Density

Description

R function to calculate and optionally plot the spectral density of a stationary ARMA model

Usage

true.arma.spec.wge(phi=0,theta=0, vara=1,plot=TRUE)

Value

f

Frequencies at which true spectral density is evaluated: 0, 1/500, 2/500, ..., .5

spec

True spectral density calculated at the frequencies in f

Arguments

phi

Vector containing AR coefficients

theta

Vector containing MA coefficients

vara

White noise variance of the ARMA model

plot

Logical: TRUE=plot, FALSE=no plot

Author

Wayne Woodward

References

"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott

Examples

Run this code
true.arma.spec.wge(phi=c(1.6,-.9), theta=.7) 

Run the code above in your browser using DataLab