Learn R Programming

UKFE (version 0.2.2)

QMEDfseSS: QMED factorial standard error for gauged sites

Description

Estimates the median annual maximum flow (QMED) factorial standard error (FSE) by bootstrapping the sample

Usage

QMEDfseSS(x)

Value

The factorial standard error for the median of a sample.

Arguments

x

a numeric vector. The sample of interest

Author

Anthony Hammond

Details

The bootstrapping procedure resamples from the sample N*500 times with replacement. After splitting into 500 samples of size N, the median is calculated for each. Then the exponent of the standard deviation of the log transformed residuals is taken as the FSE. i.e. exp(sd(log(x)-mean(log(x)))), where x is the bootstrapped medians.

Examples

Run this code
#Extract an AMAX sample and estimate the QMED factorial standard error
AM.203018 <- GetAM(203018)
QMEDfseSS(AM.203018$Flow)

Run the code above in your browser using DataLab