Compute probabilities from quantiles for both stationary and nonstationary models.
For NS-FFA: To compute the probabilities for a nonstationary model, specify a
time slice (ns_slice
) and the nonstationary model structure (ns_structure
).
Arguments
- q
Numeric vector of quantiles 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
andstructure
.- 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 thens_years
argument.- ns_structure
For NS-FFA only: Named list indicating which distribution parameters are modeled as nonstationary. Must contain two logical scalars:
location
: IfTRUE
, the location parameter has a linear temporal trend.scale
: IfTRUE
, the scale parameter has a linear temporal trend.