Last chance! 50% off unlimited learning
Sale ends in
This function computes the quantiles of the Generalized Exponential Poisson distribution given parameters (pargep
. The quantile function of the distribution is
quagep(f, para, paracheck=TRUE)
Quantile value for nonexceedance probability
Nonexceedance probability (
The parameters from pargep
or vec2par
.
A logical controlling whether the parameters are checked for validity. Overriding of this check might be extremely important and needed for use of the quantile function in the context of TL-moments with nonzero trimming.
W.H. Asquith
If f = 1
or is so close to unity that NaN
in the computations of the quantile function, then the function enters into an infinite loop for which an “order of magnitude decrement” on the value of
.Machine$double.eps
is made until a numeric hit is encountered. Let expect.max.ostat
). The expect.max.ostat
was zealous on reporting errors related to lack of finite integration. However with the “order magnitude decrementing,” then the errors in expect.max.ostat
become fewer and are either
Error in integrate(fnb, lower, upper, subdivisions = 200L) :
extremely bad integrand behaviour
or
Error in integrate(fnb, lower, upper, subdivisions = 200L) :
maximum number of subdivisions reached
and are shown here to aid in research into Generalized Exponential Power implementation.
Barreto-Souza, W., and Cribari-Neto, F., 2009, A generalization of the exponential-Poisson distribution: Statistics and Probability, 79, pp. 2493--2500.
cdfgep
, pdfgep
, lmomgep
, pargep
gep <- list(para=c(2, 1.5, 3), type="gep")
quagep(0.5, gep)
if (FALSE) {
pdf("gep.pdf")
F <- nonexceeds(f01=TRUE)
K <- seq(-1,2,by=.2); H <- seq(-1,2,by=.2)
K <- 10^(K); H <- 10^(H)
for(i in 1:length(K)) {
for(j in 1:length(H)) {
gep <- vec2par(c(2,K[i],H[j]), type="gep")
message("(K,H): ",K[i]," ",H[j])
plot(F, quagep(F, gep), lty=i, col=j, type="l", ylim=c(0,4),
xlab="NONEXCEEDANCE PROBABILITY", ylab="X(F)")
mtext(paste("(K,H): ",K[i]," ",H[j]))
}
}
dev.off()
}
Run the code above in your browser using DataLab