as.lagpol: Lag polynomial

View source: R/lagpol.R

as.lagpolR Documentation

Lag polynomial

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

a numeric vector.

p

integer power.

coef.name

name prefix for coefficients.

Value

An object of class lagpol.

Examples

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

gallegoj/tfarima documentation built on March 31, 2024, 10:32 a.m.