measures (version 0.2)

SSE: Sum of squared errors

Description

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

Usage

SSE(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)
SSE(truth, response)
# }

Run the code above in your browser using DataCamp Workspace