Learn R Programming

greybox (version 0.6.4)

polyprod: This function calculates parameters for the polynomials

Description

The function accepts two vectors with the parameters for the polynomials and returns the vector of parameters after their multiplication. This can be especially useful, when working with ARIMA models.

Usage

polyprod(x, y)

Arguments

x

The vector of parameters of the first polynomial.

y

The vector of parameters of the second polynomial.

Value

The function returns a matrix with one column with the parameters for the polynomial, starting from the 0-order.

See Also

convolve

Examples

Run this code
# NOT RUN {
polyprod(c(1,-2,-1),c(1,0.5,0.3))

# }

Run the code above in your browser using DataLab