squared_error {scoringutils}R Documentation

Squared Error

Description

Squared Error SE calculated as

(\textrm{true\_values} - \textrm{predicted\_values})^2

Usage

squared_error(true_values, predictions)

Arguments

true_values

A vector with the true observed values of size n

predictions

A vector with predicted values of size n

Value

vector with the scoring values

Examples

true_values <- rnorm(30, mean = 1:30)
predicted_values <- rnorm(30, mean = 1:30)
squared_error(true_values, predicted_values)

[Package scoringutils version 1.2.2 Index]