Description Usage Arguments Value Author(s) References Examples
This function implements formal statistical tests to check whether the directional forecasts are able to improve upon driftless random walk forecasts. Two test options include weighted and unweighted directional forecasts, and the test statistic is calculated with the Newey-West HAC estimator to control for serial correlation.
1 | Directional_DW(forecasts, p=1, weighted=TRUE)
|
forecasts |
an object of class "Maeforecast" or "MaeBagging". Can be returned by functions |
p |
the largest lag used in the forecasting model. Default is |
weighted |
logical. If |
test.statistic |
the test statistic. |
pvalue |
the p value. |
Zehua Wu
Kim, Young Ju, Zhipeng Liao, and Aaron Tornell. 2014. “Speculators Positions and Exchange Rate Forecasts: Beating Random Walk Models.” Unpublished Manuscript UCLA.
1 2 3 | AR.For<-maeforecast(mydata, w_size=72, window="recursive",
model="ar")
Directional_NW(AR.FOR, p=1, weighted=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.