Description Usage Arguments Value Author(s) References See Also Examples
Implements the test for average Superior Predictive Ability (aSPA) of Quaedvlieg (2021)
1 |
LossDiff |
the T x H matrix forecast path loss differential |
weights |
the 1 x H vector of weights for the losses at different horizons. For instance |
L |
integer, the parameter for the moving block bootstrap |
B |
integer, the number of bootstrap iterations. Default 999 |
A list containing two objects:
"p_value" |
the p-value for aSPA |
"t_aSPA" |
the statistics for aSPA |
Luca Barbaglia https://lucabarbaglia.github.io/
Quaedvlieg, Rogier. "Multi-horizon forecast comparison." Journal of Business & Economic Statistics 39.1 (2021): 40-53.
1 2 3 4 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.