View source: R/ARMApolyroots.R
ARMApolyroots | R Documentation |
This function calculates the roots of the AR or MA polynomials that correspond to an ARMA model.
ARMApolyroots(model, type = c("AR", "MA"))
model |
Either of fitted object of class |
type |
character of value "AR" or "MA", indicating whether or not the AR or MA polynomial roots are desired. |
A numeric vector containing the roots of the MA or AR polynomials
set.seed(123456)
ARMApolyroots(sample_ARMA_coef((order = c(2, 1))), type = "AR")
mod <- arima(lh, order = c(3,0,0))
ARMApolyroots(mod, type = "AR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.