Learn R Programming

tstests (version 1.0.0)

dac_test: Directional Accuracy Tests

Description

The directional accuracy test of Pesaran and Timmermann (1992), and excess profitability test of Anatolyev and Gerko (2005).

Usage

dac_test(actual, forecast, ...)

Value

An object of class “tstest.dac” which has a print and as_flextable method.

Arguments

actual

a series representing the actual value of the series in the out of sample period.

forecast

the forecast values of the series in the out of sample period.

...

not currently used.

Details

The null hypothesis for the test of Pesaran and Timmermann (1992) is that the actual and predicted are independent (no sign predictability), whereas the test of Anatolyev and Gerko (2005) measures the significance of the excess profitability under the null hypothesis of no excess excess profitability. Both are Hausman type tests asymptotically distributed as standard Normal.

References

Pesaran1992tstests

Anatolyev2005tstests

Examples

Run this code
data(arma_forecast)
print(dac_test(arma_forecast$actual, arma_forecast$forecast))

Run the code above in your browser using DataLab