Learn R Programming

sigr (version 1.1.5)

calcSSE: Calculate sum of squared error.

Description

Calculate sum of squared error.

Usage

calcSSE(pred, y, na.rm = FALSE)

Value

sum of squared error

Arguments

pred

numeric predictions

y

numeric truth

na.rm

logical, if TRUE remove NA values

Examples

Run this code

sigr::calcSSE(1:4,c(1,0,1,1))

Run the code above in your browser using DataLab