Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to contents

Compute index of agreement of observed and predicted data.

Usage

ioa(obs, pred, use = "everything")

Arguments

obs

A numeric vector, data.frame or data.table.

pred

A numeric vector, data.frame or data.table.

use

An optional character string giving a method for computing index of agreement in the presence of missing values. This must be one of the strings "everything" or "complete.obs".

Value

The index of agreement of input data as a numeric.

Details

The function computes the Index of Agreement according to the following formula: IOA=1(PO)2/((|P¯O|+|O¯P|)2)

Examples

if (FALSE) {
validationData[, .(ioa = ioa(obs, mod, use = "complete.obs"))]
}