R/monitored_variables.R

Defines functions monitored_variables

Documented in monitored_variables

#' monitored_variables
#'
#' @param model model
#'
#' @export
#'
monitored_variables <- function(model) {
  tmp <- rownames(model$summary[[1]])

  if(any(grepl("deviance", tmp)))
    tmp <- tmp[-which(tmp == "deviance")]

  if(any(grepl("^bad.", tmp)))
    tmp <- tmp[-which(grepl("^bad.", tmp))]

  tmp
}
soniamitchell/SpARKjags documentation built on May 5, 2022, 12:09 p.m.