R/GRstats.R

GRstats <- function(object, term = NULL, ...)
{
  if((n <- length(object)) < 2L)
    stop("at least two models ar needed for calculation!")
  return(coda::gelman.diag(samples(object, model = NULL, term, coda = TRUE), ...))
}
datacamp/R2BayesX documentation built on May 14, 2019, 7:10 p.m.