ARMAtoMA_cpp | R Documentation |
Takes an ARMA function and converts it to an infinite MA process.
ARMAtoMA_cpp(ar, ma, lag_max)
ar |
A |
ma |
A |
lag_max |
A |
This function is a port of the base stats package's ARMAtoMA. There is no significant speed difference between the two.
A column vector
containing coefficients
R Core Team and JJB
# ARMA(2,1) ARMAtoMA_cpp(c(1.0, -0.25), 1.0, 10) # ARMA(0,1) ARMAtoMA_cpp(numeric(0), 1.0, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.