R/one_aic.R

Defines functions one_aic

Documented in one_aic

#' Calculates the AIC for one condition
#' \code{one_aic} creates the deviance for one condition
#' one_deviance
#' @keywords internal
#' @export
one_aic <- function(d, groups, par) {
  k <- length(unique(par$parn))
  aic <- -2 * d$loglik + 2 * k
  data.frame(aic)
}

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.