ljung.wge | R Documentation |
Performs Ljung-Box Test for white noise
ljung.wge(x, K = 24, p = 0, q = 0)
x |
Realization to assess for white noise |
K |
Maximum lag for sample autocorrelations to be used in test |
p |
If x is a realization of residuals from an ARMA(p,q) fit then p=AR order. Otherwise, p=0 |
q |
If x is a realization of residuals from an ARMA(p,q) fit then q=MA order. Otherwise, q=0 |
test |
Name of test for output: Ljung-Box Test |
K |
Maximum lag : same as input value |
chi.square |
Value of chi-square statistic |
df |
Degrees of freedom = K-p-q |
pvalue |
pvalue for testing null hypothesis of white noise |
Wayne Woodward
"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
data(fig1.22a)
ljung.wge(fig1.22a, K=24,p=0,q=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.