stats: Calculate evaluation statistics from 2 vectors

View source: R/stats.R

statsR Documentation

Calculate evaluation statistics from 2 vectors

Description

Calculate statistical indexes

Usage

stats(
  mo,
  ob,
  spinup = 0,
  wd = FALSE,
  Mughal = FALSE,
  scatter = F,
  add = F,
  cor = "#FF000088",
  lim = NA,
  cutoff = NA,
  cutoff_NME = NA,
  nobs = 8,
  verbose = T,
  ...
)

Arguments

mo

model

ob

observed data

spinup

number of model points excluded to the statistic

wd

logical, true for wind direction, see notes

Mughal

logical, to use Mughal et al. (2017) for MB and ME for wind direction

scatter

set TRUE to plot a scatter plot

add

set TRUE to add the points to a scatter plot

cor

color of scatterplot dots

lim

scatter plot limits

cutoff

(optionally the maximum) valid value for observation

cutoff_NME

(optionally the maximum) valid value for observation for NME

nobs

minimum number of observations

verbose

display additional information

...

extra arguments passed to scatter plot

Note

MB and ME are calculated using Mughal et al. (2017) for wind direction

Examples

model <- 1:100
data  <- model + rnorm(100,0.2)
stats(mo = model, ob = data, scatter = TRUE)


Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.