Skip to content

Calculates the sum of the squared errors (SSE) for a vector of numeric data.

Usage

calc_ss(x)

Arguments

x

A numeric vector of data.

Value

The Sum of Squared Errors (SSE) of x.

Author

Stu Field

Examples

calc_ss(rnorm(100, 50, 5))
#> [1] 2436.067