The model tests the null hypothesis of a generalized Pareto above each threshold in thresh against the alternative of a piecewise generalized Pareto model with continuity constraints.
thselect.ncpgp(xdat, thresh, test = "score", plot = FALSE, level = 0.95, ...)an object of class mev_thselect_ncpgp containing the test statistic (stat), the p-values (pval), the threshold candidates (thresh) and the selected threshold (thresh0).
[vector] observations
[vector] candidate thresholds
[string] indicating whether to perform score test or likelihood ratio (lr) test. The latter requires fitting the alternative model, and so is more computationally expensive.
[logical]; if TRUE, return a plot with the p-value path.
[double] confidence level for confidence interval, defaults to 0.95
additional arguments, for backward compatibility purposes