Learn R Programming

tfarima (version 0.4.1)

spec: Spectrum of an ARMA model

Description

spec computes the spectrum of an ARMA model.

Usage

spec(um, ...)

# S3 method for um spec(um, nabla = FALSE, n.freq = 501, ...)

Value

A matrix with the frequencies and the power spectral densities.

Arguments

um

an object of class um.

...

additional parameters.

nabla

logical. If TRUE, the pseudospectrum for a non stationary ARIMA model is calculated. By default, the spectrum is computed for the stationary ARMA model.

n.freq

number of frequencies.

Examples

Run this code
um1 <- um(i = "(1 - B)(1 - B^12)", ma = "(1 - 0.8B)(1 - 0.8B^12)")
s <- spec(um1, lag.max = 13)

Run the code above in your browser using DataLab