arma.roots: AR or MA Polynomial Roots

View source: R/arma.roots.R

arma.rootsR Documentation

AR or MA Polynomial Roots

Description

Compute and display an AR or an MA polynomial and its roots, relative to the 'unit circle'.

Usage

arma.roots(coeficients, nplot = 400, my.title = NULL, digits = 4)

Arguments

coeficients

A vector of coefficients of polynomial.

nplot

The number of points used to display the plot (default is 400).

my.title

If my.title = NULL, it will display coefficient on middle top of graph; otherwise, it will not display coeeficient on graph.

digits

The number of decimal places to be used in numeric output (default is 4).

Value

The roots of the polynomial are returned as a vector, but invisibly.

Examples

arma.roots(c(1.6,0.4))
arma.roots(c(.5,-.1))
arma.roots(c(.5,-.9,.1,.5))
# trivial (first order or linear polynomial) example
arma.roots(.5)


wqmeeker/RTseries documentation built on Dec. 31, 2022, 10 a.m.