Learn R Programming

UKFE (version 2.0.0)

HistoricMLE: Historic flood maximum likelihood estimation

Description

A function to estimate parameters from an annual maximum sample and a known number of historic floods.

Usage

HistoricMLE(x, k = NULL, h, threshold, dist = "GenLog", Uncertainty = FALSE)

Value

A data.frame with one column of flow estimates. The row names denote the name of each estimate. If Uncertainty is TRUE, a list is returned and the second element is a dataframe with estimates and factorial standard errors.

Arguments

x

The observed annual maximum sample. A single numeric vector

k

The number of exceedances of the threshold

h

the time period (years) over which the exceedances occurred.

threshold

The perception threshold. This is the threshold we think the k events exceeded.

dist

The choice of statistical distribution. Either "GenLog", or "GEV".

Uncertainty

Logical argument with a default of FALSE. If TRUE, a data frame of results and uncertainty is also returned.

Author

Anthony Hammond

Details

This function applies the case where only the number of exceedances are known. Not the case where the discharge of the historic floods is known. This latter functionality will be added at a later date. Note that if Uncertainty is set to TRUE, a range of return periods and associated estimates are returned along with uncertainty - quantified as the FSE. In some cases the uncertainty can increase. This happens when the additional information (number of exceedances and time period) does not outweigh an increase to the scale of skew parameter. The uncertainty calculated is a function of sample size and variance.

Examples

Run this code
# Get an annual maximum sample and assume 3 exceedances over 100 years
# with a threhsold of 140m 3/s
AM71011 <- GetAM(71011)
HistoricMLE(AM71011$Flow, k = 3, h = 100, threshold = 140)


# Now estimate again but set Uncertainty = TRUE
HistoricMLE(AM71011$Flow, k = 3, h = 100, threshold = 140, Uncertainty = TRUE)

Run the code above in your browser using DataLab