R/sse.R

Defines functions sse

Documented in sse

#' Sum of squared errors of prediction
#'
#' \code{ypred} calculates the sum of squared errors of prediction
#' @param qp output from quickpsy
#' @export
sse <- function(qp) {
  qp$ypred %>% do(one_sse(., qp$groups, qp$averages))
}

Try the quickpsy package in your browser

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

quickpsy documentation built on Oct. 2, 2019, 5:03 p.m.