Computes the quantile function for a generalized Pareto distribution
with location mu, scale sigma, and shape k.
Arguments
- p
Numeric vector of probabilities, in
[0, 1], or of log probabilities, in[-Inf, 0], iflog.pisTRUE. Values outside the valid range returnNaNwith a warning.- mu
Location parameter.
- sigma
Scale parameter (must be positive).
- k
Shape parameter.
- lower.tail
Logical; if
TRUE(default), probabilities areP[X <= x].- log.p
Logical; if
TRUE, probabilities are given aslog(p).
Examples
qgeneralized_pareto(p = c(0.1, 0.5, 0.9), mu = 0, sigma = 1, k = 0.2)
#> [1] 0.1064784 0.7434918 2.9244660