R/printConvergence.R

Defines functions printConvergence

Documented in printConvergence

#' Print if model converged or not
#'
#' @param fit A fit to be tested for convergence
#' @return A character string, "Did converge" or "Did not converge"
#' @export

printConvergence <- function(fit) {
  convergence <- fit@details[["convergence"]]
  print(ifelse(convergence == 0, "Did converge", "Did not converge"))
}
alicebalard/Parasite_Load documentation built on May 20, 2021, 7:37 p.m.