#' Extract DIC from a Fitted Bayesian Model
#'
#' Computes the Deviance Information Criterion for a fitted Bayesian
#' Generalized Linear Model
#' @param fit an object of class \code{"rglmb"}, typically the result of a call to \link{rglmb}
#' @param ... further arguments to or from other methods
#' @return A list with the Estimated effective number of parameters \code{pD}
#' and the \code{DIC} from the object \code{fit} of class \code{"glmb"}.
#' @example inst/examples/Ex_extractAIC.glmb.R
#' @export
#' @method extractAIC rglmb
extractAIC.rglmb<-function(fit,...)
{
fit2=summary(fit)
return(extractAIC(fit2,...))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.