# Simple AR(1) lag polynomial: 1 - 0.8B
lagpol(param = c(phi = 0.8))
# AR(2) lag polynomial with seasonal lag s = 4: 1 - 1.2B^4 + 0.6B^8
lagpol(param = c(phi1 = 1.2, phi2 = -0.6), s = 4)
# Integration operator squared: (1 - B)^2 = 1 - 2B + B^2
lagpol(param = c(delta = 1), p = 2)
# Lag polynomial using explicit coefficients
lagpol(coef = c("1"), p = 2) # (1 - B)^2 = 1 - 2B + B^2
# Custom coefficients defined by mathematical expressions
lagpol(param = c(theta = 0.8), coef = c("2*cos(pi/6)*sqrt(theta)", "-theta"))
Run the code above in your browser using DataLab