rmse: Functions to calculate various error statistics.

View source: R/rmse.R

rmseR Documentation

Functions to calculate various error statistics.

Description

Most functions will drop any missing elements before the calculation is done.

Usage

rmse(value_predict, value)

mean_bias(value_predict, value)

mean_bias_normalised(value_predict, value)

correlation(value_predict, value, method = "pearson")

n_pairs(value_predict, value)

mae(value_predict, value)

difference(value_predict, value, absolute = FALSE)

Arguments

value_predict

A numeric vector to test against the "truth" (value).

value

A numeric vector that is considered the "truth" or observed.

method

For correlation, what method to use? Usually, this will be either "pearson" or "spearman".

absolute

Should absolute values be returned?

Value

Numeric vector with length of 1.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on June 30, 2024, 10:26 p.m.