MSE {measures}R Documentation

Mean of squared errors

Description

Defined as: mean((response - truth)^2)

Usage

MSE(truth, response)

Arguments

truth

[numeric] vector of true values

response

[numeric] vector of predicted values

Examples

n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
MSE(truth, response)

[Package measures version 0.3 Index]