R/ssd_from_mean.R

Defines functions ssd_from_mean

Documented in ssd_from_mean

#' Sum of squared deviations from mean
#' 
#' @param x Numeric vector for which sum of squared deviation from the mean is to be computed.
#' @param na.rm Boolean indicating whether to remove NAs. Defults to TRUE.
#' @export


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