Learn R Programming

greybox (version 2.0.2)

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)

Value

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

Arguments

x

The vector of parameters of the first polynomial.

y

The vector of parameters of the second polynomial.

Author

Ivan Svetunkov, ivan@svetunkov.ru

See Also

Examples

Run this code

if (FALSE) polyprod(c(1,-2,-1),c(1,0.5,0.3))

Run the code above in your browser using DataLab