#' @name deviance
#' @title Calculate the Deviance
#'
#' Calculates the deviance from the likelihood.
#'
#'
#' @param mod is the lmer model object. For exmaple, summary(mod).
#'
#' @details
#' @export
#'
#
deviance <- function(mod){
as.numeric(-2*logLik(mod))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.