Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

arma.spec

Spectral Density of an ARMA Model


Description

Gives the ARMA spectrum, tests for causality, invertibility, and common zeros.

Usage

arma.spec(ar = 0, ma = 0, var.noise = 1, n.freq = 500, log="n", type=NULL, ...)

Arguments

ar

vector of AR parameters

ma

vector of MA parameters

var.noise

variance of the noise

n.freq

number of frequencies

log

plot spectra on a log-scale; default is 'no'

type

type of plot to be drawn, defaults to lines

...

additional arguments

Details

The basic call is arma.spec(ar, ma) where ar and ma are vectors containing the model parameters. Use log="yes" 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 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.

Value

freq

frequencies - returned invisibly

spec

spectral ordinates - returned invisibly

Author(s)

D.S. Stoffer

References

Examples

arma.spec(ar = c(1, -.9), ma = .8)

astsa

Applied Statistical Time Series Analysis

v1.12
GPL-3
Authors
David Stoffer
Initial release
2020-12-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.