R/summary.R

Defines functions summary.mcmcr summary.mcmcarray

#' @export
summary.mcmcarray <- function(object, ...) {
  summary <- list(
    estimates = estimates(object),
    nchains = nchains(object),
    niters = niters(object)
  )

  class(summary) <- "summary.mcmcarray"
  summary
}

#' @export
summary.mcmcr <- function(object, ...) {
  arrays <- lapply(object, summary)

  summary <- list(arrays = list(arrays))

  class(summary) <- "summary.mcmcr"
  summary
}

Try the mcmcr package in your browser

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

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.