Learn R Programming

lmomRFA (version 2.0)

regquant: Quantiles and quantile function of a regional frequency distribution

Description

regquant computes quantiles of a regional frequency distribution, i.e., values of the regional growth curve. regqfunc returns a function that will compute the quantiles.

Usage

regquant(f, rfd)

regqfunc(rfd)

Arguments

f
Vector of probabilities.
rfd
Object of class rfd, containing the specification of a regional frequency distribution.

Value

  • regquant returns a vector of quantiles. regqfunc returns the qfunc element of rfd. This is a function that takes one argument, which should be a vector of probabilities, and returns a vector of quantiles.

See Also

regfit.

Examples

Run this code
data(Cascades)
rfit <- regfit(Cascades,"gno")  # Fit regional distribution

# Compute some quantiles
regquant(seq(0.1, 0.9, by=0.1), regfit(Cascades,"gno"))

# Get the quantile function (regional growth curve)
rgc <- regqfunc(rfit)

# Compute quantiles by evaluating the regional growth curve
rgc(seq(0.1, 0.9, by=0.1))

# Plot the regional growth curve
curve(rgc, 0.01, 0.99)

Run the code above in your browser using DataLab