#' R-squared and pseudo-rsquared for (generalized) linear (mixed) models
#'
#' This generic function calculates the r squared and pseudo r-squared for
#' a variety of(generalized) linear (mixed) model fits.
#' Currently implemented for \code{\link{lm}}, \code{\link{lmerTest::merMod}},
#' and \code{\link{nlme::lme}} objects.
#' Implementing methods usually call \code{\link{.rsquared.glmm}}
#'
#' @param mdl a fitted (generalized) linear (mixed) model object
#' @return Implementing methods usually return a dataframe with "Class",
#' "Family", "Marginal", "Conditional", and "AIC" columns
#' @export
#' @examples
#'
r.squared <- function(mdl){
UseMethod("r.squared")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.