R/extractAIC.rglmb.R

Defines functions extractAIC.rglmb

Documented in extractAIC.rglmb

#' 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,...))

}
knygren/glmbayes documentation built on Sept. 4, 2020, 4:39 p.m.