#' Output Performance comparisons for simulated and observed hydrological time series data
#'
#' Performes Nash-Sutcliffe Efficiency, Root Mean Square Error, Relative Root Mean Square Error, Ratio of RMSE to the standard deviation of the observations, and Kling-Gupta Efficiency
#'
#' @param sim numeric 'data.frame', 'matrix', or 'vector' with simulated values
#' @param obs numeric 'data.frame', 'matrix', or 'vector' with observed values
#' @export
GOFperformance <- function(sim,obs) {
# Collecting performance values
nse <- NSE(sim, obs)
rmse <- rmse(sim, obs)
rrmse <- rrmse(sim, obs)
rsr <- rsr(sim, obs)
kge <- KGE(sim, obs)
# Formatting for output
GOFoutput <- data.frame(nse, rmse, rrmse, rsr, kge)
return(GOFoutput)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.