GOF_mean_absolute_error {HyMETT} | R Documentation |
Calculates mean absolute error (MAE).
Description
Calculates mean absolute error (MAE) between modeled (simulated) and observed values. Error is defined as modeled minus observed.
Usage
GOF_mean_absolute_error(mod, obs, na.rm = TRUE)
Arguments
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' |
Details
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
Value of calculated mean absolute error (MAE).
Examples
GOF_mean_absolute_error(mod = example_mod$streamflow_cfs, obs = example_obs$streamflow_cfs)
[Package HyMETT version 1.1.2 Index]