Data should be in vector form, assumed to be from the GPD.
bootstrap
Should bootstrap be used to obtain p-values for the test? By default, a table of critical values is used via interpolation. See details.
bootnum
Number of replicates if bootstrap is used.
allowParallel
Should the bootstrap procedure be run in parallel or not. Defaults to false.
numCores
If allowParallel is true, specify the number of cores to use.
Value
statistic
Test statistic.
p.value
P-value for the test.
theta
Estimated value of theta for the initial data.
effective_bootnum
Effective number of bootstrap replicates if bootstrap
based p-value is used (only those that converged are used).
Details
A table of critical values were generated via Monte Carlo simulation for shape
parameters -0.5 to 1.0 by 0.1, which provides p-values via log-linear interpolation from
.001 to .999. For p-values below .001, a linear equation exists by regressing -log(p-value)
on the critical values for the tail of the distribution (.950 to .999 upper percentiles). This
regression provides a method to extrapolate to arbitrarily small p-values.
References
Choulakian, V., & Stephens, M. A. (2001). Goodness-of-fit tests for the Generalized Pareto distribution. Technometrics, 43(4), 478-484.