Goodness-of-Fit Functions for Comparison of Simulated and Observed Hydrological Time Series
Overview
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 removed before computations. Comments / questions / collaboration of any kind are very welcomed.
New functions
o 'PMR' : to compute the Proxy for Model Robustness to quantify the temporal stability of model bias, proposed by Royer-Gaspard et al. (2021).
o 'JDKGE': to compute the Joint Divergence Kling-Gupta Efficiency, which extends the traditional Kling-Gupta efficiency by incorporating a fourth diagnostic component that evaluates the similarity between the probability distributions of simulated and observed values, proposed by Ficchi et al. (2026).
o 'LME' : to compute the Liu-Mean Efficiency, which evaluates how large the error is compared to the average level of the observations, making it particularly useful in hydrological applications where the mean value is a meaningful scale for evaluating prediction accuracy.
o 'LCE' : to compute the Lee and Choi Efficiency, which jointly assess the correlation, variability, and bias component of the error, while explicitly penalizing imbalances between correlation and variability through two complementary terms (r*Alpha and r/Alpha).
Bug fixes
o 'APFB' : -) Its value is now correctly computed, previously it was not Thanks to Rodrigo Mariano and Héctor Garcés.
-) New argument 'out.PerYear=FALSE' to define the whether the output should include the annual peak flow bias computed for each individual year or not.
o 'sKGE' : The content of 'Details' section in the documentation of this function was fixed, because it previously corresponded to the 'KGElf' function. Equations to summarise 'sKGE' were also added to the documentation. No change was made to the R code, only to the documentation.
o 'KGEkm': The second knowable moment K2 (dispersion-related quantity) is now correctly computed using ascending sorted values of 'sim' and 'obs' (previously the knowable moment K2 was computed using unsorted values of 'sim' and 'obs'). The other two components of the 'KGEkm' were previously correctly computed and now continue to do so.
Enhancements
o 'plot2' : -) now it shows and adaptive time axis for sub-daily zoo objects.
Show all changes in 0.7-0Hide the rest of the changes in 0.7-0
-) to reduce the large amount of metrics shown by default in the legend, the 18 metrics previously shown by default ( c("ME", "MAE", "RMSE", "NRMSE", "PBIAS", "RSR", "rSD", "NSE", "mNSE", "rNSE", "d", "md", "rd", "r", "R2", "bR2", "KGE", "VE") ) were reduced to only 14 ( c( "ME", "MAE", "RMSE", "NRMSE", "PBIAS", "NSE", "d", "dr", "r", "R2", "KGE", "LCE", "JDKGE", "VE") )
o 'ggof' : -) now it shows and adaptive time axis for sub-daily zoo objects.
-) now it returns the graphical device to its status before calling this function.
-) to reduce the large amount of metrics shown by default in the legend, the 18 metrics previously shown by default ( c("ME", "MAE", "RMSE", "NRMSE", "PBIAS", "RSR", "rSD", "NSE", "mNSE", "rNSE", "d", "md", "rd", "r", "R2", "bR2", "KGE", "VE") ) were reduced to only 14 ( c( "ME", "MAE", "RMSE", "NRMSE", "PBIAS", "NSE", "d", "dr", "r", "R2", "KGE", "LCE", "JDKGE", "VE") )
o 'gof' : -) now it does not compute sKGE, APFB and HFB when sim and obs are annual zoo objects.
-) it now computes the values of the new PMR, JDKGE, LME, and LCE metrics.
o 'NRMSE' : in addition to the standard deviation and the range of observations, now it is possible to normlise the RMSE by the mean and IQRT of observations.
o 'pfactor': improved 'Details' section in the documentation, including new equations.
o 'rfactor': improved 'Details' section in the documentation, including new equations.
o 'HFB' : -) improved 'Details' section in the documentation, including new equations.
-) it mathematical formualtion was completly changed, in order to make it more compatible with APFB and PBIAS, with an optimum value in 0 and not in 1, as it was previpusly implmented in version 0.6-0.1.
Package files
o hydroGOF now has a graphical logo.
o hydroGOF now has a webpage (https://hzambran.github.io/hydroGOF/), created by pkgdown.
o CITATION file : The DOI was changed form the one given by Zotero to the new DOI given by CRAN (10.32614/CRAN.package.hydroGOF) since June 2024.
o NAMESPACE file: now imports the 'shiftyears' function of the hydroTSM R package.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 48 (1 internal)includes a package overview page
- Examples that run
- 98%45 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 98%
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 216
- Median days to close, 50 most recently updated closed PRs
- 522
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
6 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/hzambran/hydrogof on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-22 · The repository has a site deploy workflow
pkgdown site last built 2026-09-22
Dependencies
Installing hydroGOF adds 8 packages (6 with compiled code, 5.8 MB of source tarballs). Heaviest: hydroTSM 3.5 MB, zoo 675 KB, xts 470 KB.
Code & Tests
Datasets
People & History
Maintainer since 0.2-0 (2010)
Pick two releases to compare their code metrics.
- 0.7-0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.6-0.12024-11-04 · diff ↗
- 0.6-02024-05-09 · diff ↗
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-01-21
- 0.5-42024-01-21 · diff ↗
- archivedRemoved from CRAN2023-10-16requires archived package 'hydroTSM'
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.4-02020-03-12 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Show 23 earlier eventsHide 23 earlier events
- 0.3-102017-08-08 · diff ↗
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 0.3-82014-02-04 · diff ↗
- 0.3-72013-06-03 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.3-62013-03-25 · diff ↗
- 0.3-52012-10-19 · diff ↗
- 0.3-42012-07-03 · diff ↗
- 0.3-32012-05-02 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- 0.3-22011-10-08 · diff ↗
- 0.3-12011-09-15 · diff ↗
- 0.3-0
- 0.2-22011-04-14 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 0.2-12010-11-30 · diff ↗
- RR 2.12.0 released · 2010-10-15
- 0.2-02010-10-11
- RR 2.11.0 released · 2010-04-22
Package metadata
- First published
- 2010-10-11
- Total releases
- 18 / 16 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.10.0
- Bundled data
- 6.8 KB / 1 file
- Download size
- 3.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hydroGOF")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.