R/sst.R

Defines functions sst

Documented in sst

#' @title sst

#' @description Calculates the Total sums of squares (SST) from a vector of
#' observed values.

#' @inherit mae return author

#' @inheritParams iqr

#' @return Total sums of squares (SST).
#'
#' @details Interpretation: smaller is better.
#'
#' @examples
#' obs<-c(1:10)
#' sst(o=obs)
#'
#' @export
sst<-function(o){
  sum((o-mean(o))^2)
  }

Try the valmetrics package in your browser

Any scripts or data that you put into this service are public.

valmetrics documentation built on Jan. 16, 2021, 5:11 p.m.