yw | R Documentation |
Estimate AR coefficients using the Yule-Walker method
yw(x, p)
x |
Time series data (typically residuals from |
p |
AR order |
The innovations algorithm is used to estimate white noise variance.
Returns an ARMA model consisting of a list with the following components.
phi |
Vector of AR coefficients (index number equals coefficient subscript) |
theta |
0 |
sigma2 |
White noise variance |
aicc |
Akaike information criterion corrected |
se.phi |
Standard errors for the AR coefficients |
se.theta |
0 |
arma
burg
hannan
ia
M = c("diff",1) e = Resid(dowj,M) a = yw(e,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.