Learn R Programming

UKFE (version 0.1.1)

GEVEst: Generalised extreme value distribution estimates from parameters

Description

Estimated quantiles as function of return period (RP) and vice versa, from user input parameters

Usage

GEVEst(loc, scale, shape, q = NULL, RP = 100)

Arguments

loc

location parameter

scale

scale parameter

shape

shape parameter

q

quantile. magnitude of the variable under consideration

RP

return period

Value

quantile as a function of RP or vice versa

Details

If the argument q is used, it overrides RP and provides RP as a function of q (magnitude of variable) as opposed to q as a function of RP.

Examples

Run this code
# NOT RUN {
#Get an annual maximum sample, estimate the parameters and estimate 50-year RP
AM.27090 <- GetAM(27090)
GEVPars(AM.27090$Flow)
GEVEst(298.6416, 51.37096, -0.04211332, RP = 50)
#Estimate the RP for a 600m3/s discharge
GEVEst(298.6416, 51.37096, -0.04211332, q = 600)
# }

Run the code above in your browser using DataLab