roots2lagpol: Lag polynomial from roots

View source: R/lagpol.R

roots2lagpolR Documentation

Lag polynomial from roots

Description

roots2lagpol creates a lag polynomial from its roots.

Usage

roots2lagpol(x, lp = TRUE, ...)

Arguments

x

a vector of real and/or complex roots.

lp

logical. If TRUE, a object of class lagpol is returned; otherwise a numeric vector is returned.

...

additional arguments.

Value

A lag polynomial or a numeric vector.

Examples

roots2lagpol(polyroot(c(1, -1)))
roots2lagpol(polyroot(c(1, -1, 1)))


tfarima documentation built on Nov. 5, 2025, 7:43 p.m.