Gives the ARMA spectrum, tests for causality, invertibility, and
common zeros.
Usage
arma.spec(ar = 0, ma = 0, var.noise = 1, n.freq = 500, main = NULL,
frequency = 1, ylim = NULL, plot = TRUE, ...)
Value
freq
frequencies - returned invisibly
spec
spectral ordinates - returned invisibly
Arguments
ar
vector of AR parameters
ma
vector of MA parameters
var.noise
variance of the noise
n.freq
number of frequencies
main
title of graphic; default is "ARMA" with orders "(p, q)"
frequency
for seasonal models, adjusts the frequency scale
ylim
optional; specify limits for the y-axis
plot
if TRUE (default), produces a graphic
...
additional arguments
Author
D.S. Stoffer
Details
The basic call is arma.spec(ar, ma) where ar and ma are vectors
containing the model parameters. Use log='y' if you want the plot on
a log scale. If the model is not causal or invertible an error message is given. If
there are approximate common zeros, a spectrum will be displayed and a warning will be given;
e.g., arma.spec(ar= .9, ma= -.9) will yield a warning and the plot will be the
spectrum of white noise. Note for example that arma.spec(ar=1, ma=1) will bring up an error with warnings that the model is not causal and not invertible.
References
You can find demonstrations of astsa capabilities at
FUN WITH ASTSA.