dm_cw | R Documentation |
It calculates the original DM statistics and the CW adjusted version of DM statistics, including the versions based on a Newey-West type estimator of the long run variance.
dm_cw(Ehat1, Ehat2)
Ehat1 |
Residual series from Model 1 (the smaller model). One dimension and numeric. |
Ehat2 |
Residual series from Model 2 (the larger/nested model). One dimension and numeric. |
A list of statistics and corresponding P values will be produced.
Clark, T. E., & West, K. D. (2007). Approximately normal tests for equal predictive accuracy in nested models. Journal of econometrics, 138(1), 291-311.
Diebold, F. X., & Mariano, R. S. (1995). Com paring predictive accu racy. Journal of Business and Economic Statistics, 13(3), 253-263.
e1<- rnorm(15);
e2<- rnorm(15);
temp1 <- dm_cw(e1,e2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.