sum_stat: Caclulate summary stats of mod v obs

View source: R/sum_stat.R

sum_statR Documentation

Caclulate summary stats of mod v obs

Description

Calculate general summary statistics of modelled water temperature vs observed water temperature; Pearson's R, variance, covariance, bias, Nash-Sutcliffe Efficiency (NSE) and Root mean squared error (RMSE) and log-likelihood (lnlikelihood).

Usage

sum_stat(mod, obs, depth = FALSE, na.rm = TRUE, depth.range = NULL)

Arguments

mod

vector or dataframe; Vector if no depth values otherwise Modelled values in the long format; date, depth, values

obs

vector or dataframe; Vector if no depth values otherwise Observed values in the long format; date, depth, values

depth

logical; Depth values are included. Defaults to False

na.rm

logical; Remove NA'values

depth.range

vector; vector with a depth range to extract statistics at certain depths.

Value

data frame of summary statistics


aemon-j/gotmtools documentation built on April 12, 2024, 4:35 p.m.