R/fns.R
calcSSE.Rd
Calculate sum of squared error.
calcSSE(pred, y, na.rm = FALSE)
numeric predictions
numeric truth
logical, if TRUE remove NA values
sum of squared error
sigr::calcSSE(1:4,c(1,0,1,1)) #> [1] 17