Test_uSPA: Test uniform Superior Predictive Ability

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Test_uSPA.R

Description

Implements the test for uniform Superior Predictive Ability (uSPA) of Quaedvlieg (2021)

Usage

1
Test_uSPA(LossDiff, L, B = 999)

Arguments

LossDiff

the T x H matrix forecast path loss differential

L

the parameter for the moving block bootstrap

B

integer, the number of bootstrap iterations. Default 999

Value

A list containing two objects:

"p_value"

the p-value for uSPA

"t_uSPA"

the statistics for uSPA

Author(s)

Luca Barbaglia https://lucabarbaglia.github.io/

References

Quaedvlieg, Rogier. "Multi-horizon forecast comparison." Journal of Business & Economic Statistics 39.1 (2021): 40-53.

See Also

Test_aSPA

Examples

1
2
3
4
5
6
7
8
## Test for uSPA

Trow <- 200 
H <- 12
Mmethods <- 5
Losses <- matrix(rnorm(Trow*H, mean = 0), nrow = Trow, ncol = H)

Test_uSPA(LossDiff=Losses, L=3, B=5)

lucabarbaglia/MultiHorizonSPA documentation built on Dec. 12, 2021, 5:43 a.m.