Learn R Programming

tfarima (version 0.3.2)

roots.lagpol: Roots of a lag polynomial

Description

roots.lagpol computes the roots of a lag polynomial.

Usage

# S3 method for lagpol
roots(x, table = TRUE, ...)

# S3 method for default roots(x, ...)

Value

A vector or a table.

Arguments

x

an object of class lagpol.

table

logical. If TRUE, it returns a five columns table showing the real and imaginary parts, the modulus, the frequency and the period of each root.

...

additional arguments.

Examples

Run this code
roots(c(1, 1.2, -0.8))

Run the code above in your browser using DataLab