Density, distribution, quantile functions and random number generation from the
mixture model of Northrop and Coleman (2014), which consists of m
different generalized Pareto distributions over non-overlapping intervals
with m
shape parameters and one scale parameter; the other scale parameters are
constrained so that the resulting distribution is continuous over the domain
and reduces to a generalized Pareto distribution if all of the shape parameters are equal.
dgppiece(x, scale, shape, thresh, log = FALSE)pgppiece(q, scale, shape, thresh, lower.tail = TRUE, log.p = FALSE)
qgppiece(p, scale, shape, thresh, lower.tail = TRUE, log.p = FALSE)
rgppiece(n, scale, shape, thresh)
a vector of quantiles (qgppiece
), probabilities (pgppiece
), density (dgppiece
) or random number generated from the model (rgppiece
)
vector of quantiles
positive value for the first scale parameter
vector of m
shape parameters
vector of m
thresholds
logical; if TRUE
, the values are returned on the log scale
logical; if TRUE (default), probabilities are \(\Pr[X \leq x]\) otherwise, \(\Pr[X > x]\).
vector of probabilities
sample size
Northrop & Coleman (2014). Improved threshold diagnostic plots for extreme value analyses, Extremes, 17(2), 289--303.