Generic function to get model performance measures

Get model performance measures

Get model performance measures from a hpr object

rmf_performance(...)

# S3 method for default
rmf_performance(
  sim,
  obs,
  na_value = -888,
  measures = c("ssq", "mse", "mae", "me", "r2", "nse", "rmse", "pbias", "kge"),
  ...
)

# S3 method for hpr
rmf_performance(
  hpr,
  hobdry = -888,
  measures = c("ssq", "mse", "mae", "me", "r2", "nse", "rmse", "pbias", "kge"),
  ...
)

Arguments

...

arguments passes to hydroGOF::gof

sim

numeric vector with simulated values

obs

numeric vector with observed values corresponding to sim

na_value

numeric; flags values to remove from the calculations; defaults to -888

measures

character vector with the required performance measures. Possible values are any of the measures present in hydroGOF::gof + 'ssq' (sum of squared errors)

hpr

head predictions file object

hobdry

value used to flag dry cells; defaults to -888

Value

data.frame with performance measures

data.frame with performance measures