as.lagpol: Lag polynomial converter

View source: R/lagpol.R

as.lagpolR Documentation

Lag polynomial converter

Description

as.lagpol converts a numeric vector c(1, -a_1, ..., -a_d) into a lag polynomial (1 - a_1 B - ... - a_p B^p).

Usage

as.lagpol(pol, p = 1, coef.name = "a")

Arguments

pol

the numeric vector to be converted into an object of class lag polynomial.

p

the exponent of the lag polynomial, positive integer.

coef.name

name prefix for coefficients, character.

Value

An object of class lagpol.

Examples

as.lagpol(c(1, -0.8))
as.lagpol(c(1, 0, 0, 0, -0.8))

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