Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

OptimPars

Optimise distribution parameters


Description

Estimates the parameters of the generalised extreme value or generalised logistic distribution from known return period estimates

Usage

OptimPars(x, dist = "GenLog")

Arguments

x

a data.frame with RPs in the first column and associated estimates in the second column

dist

a choice of distribution for the estimates. The choices are "GenLog" or "GEV" the generalised logistic and the generalised extreme value distribution, respectively. The default is "GenLog"

Details

Given a dataframe with return periods (RPs) in the first column and associated estimates in the second column, this function provides an estimate of the distribution parameters. Ideally the first RP should be 2. Extrapolation outside the RPs used for calibration comes with greater uncertainty.

Value

The location, scale and shape parameters for the generalised logistic or Generalised extreme value distribution.

Author(s)

Anthony Hammond

Examples

#Get some catchment descriptors and some quick results. Then estmate the GenLog parameters
Results <- QuickResults(GetCDs(96001))[[1]]
OptimPars(Results[,1:2])

UKFE

UK Flood Estimation

v0.1.6
GPL-3
Authors
Anthony Hammond
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.