GOF | R Documentation |
Numerical goodness-of-fit measures between sim and obs, with treatment of missing values.
gof(sim, obs, ...)
## Default S3 method:
gof(
sim,
obs,
na.rm = TRUE,
do.spearman = FALSE,
s = c(1, 1, 1),
method = c("2009", "2012"),
start.month = 1,
digits = 2,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
valindex(sim, obs, ...)
## Default S3 method:
valindex(sim, obs, ...)
rPearson(sim, obs, ...)
## Default S3 method:
rPearson(
sim,
obs,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
sKGE(sim, obs, ...)
## Default S3 method:
sKGE(
sim,
obs,
s = c(1, 1, 1),
na.rm = TRUE,
method = c("2009", "2012"),
start.month = 1,
out.PerYear = FALSE,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
KGE(sim, obs, ...)
## Default S3 method:
KGE(
sim,
obs,
s = c(1, 1, 1),
na.rm = TRUE,
method = c("2009", "2012", "2021"),
out.type = c("single", "full"),
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
NSE(sim, obs, ...)
## Default S3 method:
NSE(
sim,
obs,
na.rm = TRUE,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
pbias(sim, obs, ...)
## Default S3 method:
pbias(
sim,
obs,
na.rm = TRUE,
dec = 1,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
mae(sim, obs, ...)
## Default S3 method:
mae(
sim,
obs,
na.rm = TRUE,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
VE(sim, obs, ...)
## Default S3 method:
VE(
sim,
obs,
na.rm = TRUE,
fun = NULL,
...,
epsilon.type = c("none", "Pushpalatha2012", "otherFactor", "otherValue"),
epsilon.value = NA
)
sim |
numeric, vector of simulated values |
obs |
numeric, vector of observed values |
... |
further arguments passed to/from other methods. |
na.rm |
a logical value indicating whether 'NA' should be stripped before the computation proceeds. When an 'NA' value is found at the i-th position in obs OR sim, the i-th value of obs AND sim are removed before the computation. |
do.spearman |
logical, indicates if the Spearman correlation should be computed. The default is |
s |
argument passed to the |
method |
argument passed to the |
start.month |
argument passed to the |
digits |
integer, numer of decimal places used for rounding the goodness of fit indexes. |
fun |
function to be applied to |
epsilon.type |
argument used to define a numeric value to be added to both
|
epsilon.value |
numeric, value to be added to both |
out.PerYear |
logical, argument passed to the |
out.type |
argument passed to the |
dec |
argument passed to the |
The gof
, mae
, pbias
, NSE
, rPearson
, sKGE
, and KGE
functions are provided to calculate goodness of fit statistics.
The functions were adapted from the hydroGOF package https://github.com/hzambran/hydroGOF.
gof
Returns a matrix of goodness of fit statistics. mae
, pbias
, NSE
, rPearson
, sKGE
, and KGE
return a numeric of the goodness of fit statistic.
gof(sim = sample(1:100), obs = sample(1:100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.