calc_gof | R Documentation |
Returns a data frame of calculated goodness of fit stats for each
monitoring site and all sites combined. The function accepts multiple sites
and variable timeseries. preds
and obs
are matched based on the
Monitoring.Location.ID, constituent, and nearest datetime within a set number
of minutes defined using tolerance
.If the difference in datetimes
exceeds the tolerance
a match will not be made. Goodness of fit
statistics are calculated using the metrica
package.
Statistics calculated are Mean Bias Error (MBE), Mean Absolute Error (MAE), Root
Mean Square Error (RMSE), Nash-Sutcliffe Efficiency (NSE), and Coefficient
of Determination (R2). Goodness of fit results are rounded to the hundredths.
The count of preds
and obs
comparisons
at each monitoring location are also included (n).
calc_gof(preds, obs, tolerance = 60)
preds |
Data frame of model prediction results. The
|
obs |
Data frame of field observation results. The
|
tolerance |
The maximum number of minutes allowed between the datetimes
in |
data frame
MBE
, MAE
,
RMSE
, NSE
,
cor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.