rmse: Functions to calculate various error statistics.

View source: R/rmse.R

rmseR Documentation

Functions to calculate various error statistics.

Description

All 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)

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".

Value

Numeric vector with length of 1.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.