powered by
Reduce permutation times by fitting generalized pareto distribution of the right tail data.
LessPermutation( X, x0, fitting.method = "mle", search.step = 0.01, fit.cutoff = 0.05, when.to.fit = 0.05 )
p value of the observed value in the permutation test
a vector of data recording the permutation values
observed value
method to fit GPD, default is "mle", alternative "gd"(gradient descend)
the length of step (this param * length(X)) to find threshold. Default 0.01
the cutoff of p value to judge whether it fits well to GPD, default is 0.05
a cutoff to tell how many sample values are bigger than the target value then we don't need to fit GPD. it is a portion.Default 0.05
x = POT::rgpd(200, 1, 2, 0.25) LessPermutation(x,1,fitting.method='gd')
Run the code above in your browser using DataLab