View source: R/goodness_of_fit.R
GOF_mean_absolute_error | R Documentation |
Calculates mean absolute error (MAE) between modeled (simulated) and observed values. Error is defined as modeled minus observed.
GOF_mean_absolute_error(mod, obs, na.rm = TRUE)
mod |
'numeric' vector. Modeled or simulated values. Must be same length as |
obs |
'numeric' vector. Observed or comparison values. Must be same length as |
na.rm |
'boolean' |
The absolute value of each modeled-observed pair error is calculated, then the mean of those values taken. Values returned are in units of input data.
Value of calculated mean absolute error (MAE).
GOF_mean_absolute_error(mod = example_mod$streamflow_cfs, obs = example_obs$streamflow_cfs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.