LRExp.test(x,
alternative = c("lomax", "GPD", "gpd", "maxlo"),
method = c("num", "sim", "asymp"),
nSamp = 15000,
simW = FALSE)method is
"sim".TRUE and method
is "sim", the simulated values are returned as
an element W in the list.statistic, p.value
and method. Other elements aresimW is TRUE and method is "sim"
only. A vector of nSamp simulated values of the statistic
$W := -2 \log \textrm{LR}$.methodis"num", a numerical
approximation of the distribution is used. This method
is not unlike that used by Kozubowski et al., but a different
approximation is used. However, ifxhas a length$n > 500$, the method is turned to"asymp".methodis"sim",nSampsamples of the
exponential distribution with the same size asxare drawn
and the LR statistic is computed for each sample. The$p$-value
is simply the estimated probability that a simulated LR is greater
than the observed LR.methodis"asymp", the asymptotic
distribution is used.The approximation method used is described in the Renext Computing Details report.
Lomax, Maxlo, GPD for the
alternatives used here.set.seed(1234)
x <- rGPD(n = 50, loc = 0, scale = 1, shape = 0.1)
LRExp.test(x, method = "num")$p.value
LRExp.test(x, method = "asymp")$p.value
## requires much time
LRExp.test(x, method = "asymp")$p.valueRun the code above in your browser using DataLab