Skip to content

Goodness-of-fit functions for comparison of simulated and observed hydrological time series

Notifications You must be signed in to change notification settings

hzambran/hydroGOF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hydroGOF

Research software impact CRAN License monthly total Build Status dependencies

R-CMD-check

hydroGOF is an R package that provides S3 functions implementing both statistical and graphical goodness-of-fit measures between observed and simulated values, mainly oriented to be used during the calibration, validation, and application of hydrological models.

Missing values in observed and/or simulated values can be automatically removed before the computations.

Bugs / comments / questions / collaboration of any kind are very welcomed.

Installation

Installing the latest stable version from CRAN:

install.packages("hydroGOF")

Alternatively, you can also try the under-development version from Github:

if (!require(devtools)) install.packages("devtools")
library(devtools)
install_github("hzambran/hydroGOF")

Reporting bugs, requesting new features

If you find an error in some function, or want to report a typo in the documentation, or to request a new feature (and wish it be implemented :) you can do it here

Citation

citation("hydroGOF")

To cite hydroGOF in publications use:

Zambrano-Bigiarini, Mauricio (2024). hydroGOF: Goodness-of-fit functions for comparison of simulated and observed hydrological time series. R package version 0.6-0. URL:https://cran.r-project.org/package=hydroGOF. doi:10.5281/zenodo.839854.

A BibTeX entry for LaTeX users is

@Manual{hydroGOF,
title = {hydroGOF: Goodness-of-fit functions for comparison of simulated and observed hydrological time series},
author = {Zambrano-Bigiarini, Mauricio},
note = {R package version 0.6-0},
year = {2024}, url = {https://cran.r-project.org/package=hydroGOF},
doi = {10.5281/zenodo.839854},
}

Goodness-of-fit measures

Quantitative statistics included in this package are:

  • me: Mean Error (Hill et al., 2006)
  • mae: Mean Absolute Error (Hodson, 2022)
  • mse: Mean Squared Error (Yapo et al., 1996)
  • rmse: Root Mean Square Error (Willmott and Matsuura, 2005)
  • ubRMSE: Unbiased Root Mean Square Error (Entekhabi et al., 2010)
  • nrmse: Normalized Root Mean Square Error
  • pbias: Percent Bias (Yapo et al., 1996)
  • rsr: Ratio of RMSE to the Standard Deviation of the Observations (Moriasi et al., 2007)
  • rSD: Ratio of Standard Deviations
  • NSE: Nash-Sutcliffe Efficiency (Nash and Sutcliffe, 1970)
  • mNSE: Modified Nash-Sutcliffe Efficiency (Krause et al., 2005)
  • rNSE: Relative Nash-Sutcliffe Efficiency (Legates and McCabe, 1999)
  • wNSE: Weighted Nash-Sutcliffe Efficiency (Hundecha and Bardossy, 2004)
  • wsNSE: Weighted Seasonal Nash-Sutcliffe Efficiency (Zambrano-Bigiarini and Bellin, A., 2012)
  • d: Index of Agreement (Willmott, C.J., 1981)
  • dr: Refined Index of Agreement (Willmott et al., 2012)
  • md: Modified Index of Agreement (Krause et al., 2005)
  • rd: Relative Index of Agreement (Krause et al., 2005)
  • cp: Persistence Index (Kitanidis and Bras, 1980)
  • rPearson: Pearson correlation coefficient (Pearson, 1920)
  • R2: Coefficient of determination (Box, 1966)
  • br2: R2 multiplied by the coefficient of the regression line between \code{sim} and \code{obs} (Krause et al., 2005)
  • VE: Volumetric efficiency (Criss and Winston, 2008)
  • KGE: Kling-Gupta efficiency (Gupta et al., 2009)
  • KGElf: Kling-Gupta Efficiency for low values (Garcia et al., 2017)
  • KGEnp: Non-parametric version of the Kling-Gupta Efficiency (Pool et al., 2018)
  • KGEkm: Knowable Moments Kling-Gupta Efficiency (Pizarro and Jorquera, 2024)
  • sKGE: Split Kling-Gupta Efficiency (Fowler et al., 2018)
  • APFB: Annual Peak Flow Bias (Mizukami et al., 2019)
  • HFB: High Flow Bias
  • rSpearman: Spearman's rank correlation coefficient (Spearman, 1961)
  • ssq: Sum of the Squared Residuals (Willmott et al., 2009)
  • pbiasfdc: PBIAS in the slope of the midsegment of the flow duration curve (Yilmaz et al., 2008)
  • pfactor: P-factor (Abbaspour et al., 2009)
  • rfactor: R-factor (Abbaspour et al., 2009)

References

Vignette

Here you can find an introductory vignette illustrating the use of several hydroGOF functions.

Related Material

  • R: a statistical environment for hydrological analysis (EGU-2010) abstract, poster.

  • Comparing Goodness-of-fit Measures for Calibration of Models Focused on Extreme Events (EGU-2012) abstract, poster.

  • Using R for analysing spatio-temporal datasets: a satellite-based precipitation case study (EGU-2017) abstract, poster.

See Also

About

Goodness-of-fit functions for comparison of simulated and observed hydrological time series

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages