
Runs the IM Test using bootstrap estimated covariance matrix. Asymptotically (in sample size) follows the F(3, bootnum - 3) distribution (see reference for details).
gpdImAsym(data, bootnum, theta = NULL)
Data should be in vector form.
Number of bootstrap replicates for the covariance estimate.
Estimate for theta in the vector form (scale, shape). If NULL, uses the MLE.
Test statistic.
P-value for the test.
Value of theta used in the test.
Effective number of bootstrap replicates used for the covariance estimate. If a replicate fails to converge, it will not be used in the estimation.
Dhaene, G., & Hoorelbeke, D. (2004). The information matrix test with bootstrap-based covariance matrix estimation. Economics Letters, 82(3), 341-347.
# NOT RUN {
# Generate some data from GPD
x <- rgpd(200, loc = 0, scale = 1, shape = 0.2)
gpdImAsym(x, bootnum = 50)
# }
Run the code above in your browser using DataLab