ts_stat: Calculate time-series over a depth dependent variable

View source: R/ts_stat.R

ts_statR Documentation

Calculate time-series over a depth dependent variable

Description

Calculate a time series of a statistical measure of modelled versus observed water temperature.

Usage

ts_stat(mod, obs, depth.range = NULL, stat = "pearson", tz = "UTC")

Arguments

mod

dataframe; Modelled values in the long format. i.e. same as observed in ACPy

obs

dataframe; Observed values in the long format loaded in using load.obs

depth.range

vector; vector with a depth range to extract RMSE at certain depths. Upper limit first e.g. c(-5,-10). Defaults to whole water column.

stat

'character; which statistic to use. Options are 'RMSE', 'NSE','MAE' and 'pearson'

tz

Timezone string to be supplied to as.POSIXct. Defaults to 'UTC'. This often can be left to the default unless timezone support is specifically required.

Value

data frame; time series of RMSE


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