measures (version 0.2)

MSE: 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

Run this code
# NOT RUN {
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
MSE(truth, response)
# }

Run the code above in your browser using DataLab