R/sse.R

Defines functions sse

Documented in sse

#' Sum of squared errors
#' 
#' @param x Numeric vector of model residuals.
#' @param na.rm Boolean indicating whether to remove NAs. Defults to TRUE.
#' @export

sse = function(x,na.rm=T) sum(x^2,na.rm = na.rm)
msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.