utils_quantiles: Quantile Functions for Probability Models
Description
Compute the quantiles for stationary and nonstationary probability models.
For NS-FFA: To compute the quantiles for a nonstationary probability model,
specify a time slice (ns_slice) and the nonstationary model structure
(ns_structure).
A numeric vector of quantiles with the same length as p.
Arguments
p
Numeric vector of probabilities between 0 and 1 with no missing values.
distribution
A three-character code indicating the distribution family.
Must be "GUM", "NOR", "LNO", "GEV", "GLO", "GNO", "PE3", "LP3",
or "WEI".
params
Numeric vector of distribution parameters, in the order (location,
scale, shape). The length must be between 2 and 5, depending on the specified
distribution and structure.
ns_slice
For NS-FFA only: Numeric scalar specifying the year at which to
evaluate the quantiles of a nonstationary probability distribution. ns_slice
does not have to be an element of the ns_years argument.
ns_structure
For NS-FFA only: Named list indicating which distribution
parameters are modeled as nonstationary. Must contain two logical scalars:
location: If TRUE, the location parameter has a linear temporal trend.
scale: If TRUE, the scale parameter has a linear temporal trend.