R/DIC.bayesx.R

Defines functions DIC.bayesx

Documented in DIC.bayesx

DIC.bayesx <- function(object, ...)
{
  object <- c(object, ...)
  val <- extract.model.diagnostic(object, 1L:length(object), "DIC", FALSE)
  val <- data.frame(pd = extract.model.diagnostic(object, 1L:length(object), "pd", FALSE), 
    DIC = val)
  Call <- match.call()
  Call$k <- NULL
  row.names(val) <- if(nrow(val) > 1) as.character(Call[-1L]) else ""

  return(val)
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 9:11 a.m.