R/GRstats.R

Defines functions GRstats

Documented in GRstats

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), ...))
}

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.