Learn R Programming

RtsEva (version 1.1.0)

empdis: empdis: Empirical Distribution Function

Description

empdis is a function that calculates the empirical distribution function for a given dataset.

Usage

empdis(x, nyr)

Value

A data frame containing:

emp.RP

empirical return period

haz.RP

Hazen return period

cun.RP

Cunnane return period

gumbel

Gumbel values

emp.f

empirical cumulative density

emp.hazen

Hazen cumulative density

emp.cunnan

Cunnane cumulative density

Q

original data

timestamp

time component

Arguments

x

A numeric vector representing the dataset.

nyr

An integer representing the number of years in the dataset.

Examples

Run this code
x <- c(1, 2, 3, 4, 5)
nyr <- 5
empdis(x, nyr)

Run the code above in your browser using DataLab