powered by
Implements the test for average Superior Predictive Ability (aSPA) of Quaedvlieg (2021)
Test_aSPA(LossDiff, weights, L, B = 999)
the T x H matrix forecast path loss differential
the 1 x H vector of weights for the losses at different horizons. For instance weights <- matlab::ones(1,20)/20
weights <- matlab::ones(1,20)/20
integer, the parameter for the moving block bootstrap
integer, the number of bootstrap iterations. Default 999
A list containing two objects:
the p-value for aSPA
the statistics for aSPA
Quaedvlieg, Rogier. "Multi-horizon forecast comparison." Journal of Business & Economic Statistics 39.1 (2021): 40-53.
Test_uSPA
# NOT RUN { ## Test for aSPA and uSPA data(LossDiff_aSPA) weights <- matlab::ones(1,20)/20 Test_aSPA(LossDiff=LossDiff_aSPA, weights=weights, L=3, B=10) # }
Run the code above in your browser using DataLab