View source: R/summary_functions.R
summaryArima | R Documentation |
Displays results of regression estimated with autoregressive errors. The function will also provide a summary for a regression with both autoregressive and moving average terms.
summaryArima(arima_mod)
arima_mod |
The regression model with autoregressive errors. |
Consider a regression of y on x1, x2, and x3 that is estimated with second-order autoregressive errors as follows:
ar2Reg=with(mydata, Arima(y, xreg=cbind(x1,x2,x3), order=c(2,0,0), include.constant = TRUE))
The results of this regression are then reported by the following command:
summaryArima(ar2Reg)
Consider a regression of y on x1, x2, and x3 that is estimated with both first-order autoregressive and first-order moving average errors as follows:
armaReg=with(mydata, Arima(y, xreg=cbind(x1,x2,x3), order=c(1,0,1), include.constant = TRUE))
The results of this regression are then reported by the following command:
summaryArima(armaReg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.