Learn R Programming

HydroPortailStats (version 1.1.0)

GetEstimate_LMOM: L-Moment estimate of a distribution

Description

Returns an estimate of a distribution using the method of L-moments. Note that for some distributions, this is not strictly speaking the L-moment estimate: For LogNormal and LogPearsonIII, the L-moment estimate of log(data) is used.

Usage

GetEstimate_LMOM(y, dist)

Value

A list with the following components:

par

numeric vector, estimated parameter vector.

obj

numeric, objective fonction (NA for this estimate)

ok

logical, did computation succeed?

err

integer, error code (0 if ok)

message

error message

Arguments

y

numeric vector, data

dist

character, distribution name

Examples

Run this code
y=c(9.2,9.5,11.4,9.5,9.4,9.6,10.5,11.1,10.5,10.4)
GetEstimate_LMOM(y,'Normal')
GetEstimate_LMOM(y,'LogNormal')
GetEstimate_LMOM(y,'Gumbel')
GetEstimate_LMOM(y,'GEV')
GetEstimate_LMOM(y,'Poisson')

Run the code above in your browser using DataLab