R/getRhat.R

Defines functions getRhat

Documented in getRhat

#' a function to retrieve the Rhat values from the model object
#'
#' @param runObject an object returned by runJAGSmodel.
#' @return the Rhat values for the model parameters.
#' @examples
#' rr <- getRhat(runObject)
#' @export
getRhat <- function(runObject){
  runObject$JAGSout$BUGSoutput$summary[,"Rhat"]
}
MartinLiermann/coastalCohoSS documentation built on April 12, 2021, 2:11 a.m.