R/generics.R

Defines functions log_lik

Documented in log_lik

# Generic functions re-exported or defined here so that S3 methods can be
# registered without requiring 'loo' to be a hard dependency.

#' Pointwise log-likelihood matrix
#'
#' @param object A fitted model object.
#' @param ... Additional arguments passed to methods.
#' @return A matrix of pointwise log-likelihood values of dimension \code{S x N},
#'   where \code{S} is the number of posterior draws and \code{N} is the number
#'   of observations.
#' @export
log_lik <- function(object, ...) UseMethod("log_lik")

#' @importFrom loo loo
#' @export
loo::loo

#' @importFrom loo waic
#' @export
loo::waic

#' @importFrom bayesplot pp_check
#' @export
bayesplot::pp_check

Try the smoothbp package in your browser

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

smoothbp documentation built on June 14, 2026, 9:06 a.m.