| enc_new | R Documentation |
Tests whether the benchmark model encompasses the alternative model, using the ENC-NEW statistic of Clark and McCracken (2001). Under the null, the benchmark forecast encompasses the alternative (no additional information in the alternative).
enc_new(e1, e2)
e1 |
Numeric vector of forecast errors from the benchmark model. |
e2 |
Numeric vector of forecast errors from the alternative model. |
The ENC-NEW statistic is:
\text{ENC-NEW} = n \cdot \frac{\bar{c}}{\text{MSFE}_2}
where \bar{c} = n^{-1} \sum (e_{1,t}^2 - e_{2,t} e_{1,t}) and
\text{MSFE}_2 = n^{-1} \sum e_{2,t}^2.
Critical values are non-standard and depend on the estimation setup. See Clark and McCracken (2001, Table 2) for asymptotic critical values.
A list with class "enc_new" containing:
statistic |
The ENC-NEW test statistic. |
n |
Number of observations. |
Clark, T.E. and McCracken, M.W. (2001). Tests of Equal Forecast Accuracy and Encompassing for Nested Models. Journal of Econometrics, 105(1), 85-110.
set.seed(42)
e1 <- rnorm(100)
e2 <- rnorm(100, sd = 0.9)
enc_new(e1, e2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.