R/R_hat_max.R

Defines functions R_hat_max

Documented in R_hat_max

#' @title Max R hat
#'
#' @param  StanS4class A stanfit object.
#'
#' @return A real number, indicating the maximal R hat over all parameters.
#' @export
#'
# @examples
R_hat_max <- function(StanS4class){

  f <- methods::as(StanS4class,"stanfit")

max.rhat <-  round( max(summary(f)$summary[,"Rhat"]) ,digits = 5)

return(max.rhat)
}

Try the BayesianFROC package in your browser

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

BayesianFROC documentation built on Jan. 23, 2022, 9:06 a.m.