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:
$$
\mathrm{IOA} = 1 - \sum (P - O)^2 / \sum( (|P - \overline{O} | + | O - \overline{P}|)^2)
$$
Examples
if (FALSE) { # \dontrun{
validationData[, .(ioa = ioa(obs, mod, use = "complete.obs"))]
} # }