Learn R Programming

tiger (version 0.2.3.1)

nashS: Calculates the (weighted) Nash Suttcliffe Efficiency coefficient

Description

Calculates the Nash Suttcliffe Efficiency coefficient.

Usage

nashS(modelled, measured, weigth = NA) nashS_HF(modelled, measured, weigth = NA)

Arguments

modelled
Vector with modeled data
measured
Vector with measured data
weigth
If this vector is supplied, each data point is weighted accordingly

Value

Returns a scalar between -Inf and 1 corresponding to the agreement between measured and modelled data. 0 means the model agrees equally well as the mean value.

Details

The weighting corresponds to the value in the empirical cumulative distribution function.

References

http://en.wikipedia.org/wiki/Nash-Sutcliffe_efficiency_coefficient

Examples

Run this code
     ref.peak <- synth.peak(rise.factor=2, recession.const=0.02)
     peak <- synth.peak(rise.factor=2, recession.const=0.03)
     nashS(modelled=peak, measured=ref.peak)

Run the code above in your browser using DataLab