Skip to content

Commit

Permalink
Add method for parsnip _glm model
Browse files Browse the repository at this point in the history
  • Loading branch information
egouldo authored Sep 4, 2023
1 parent 52a9b9e commit db9190e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/check_convergence.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@ check_convergence.glmmTMB <- function(x, ...) {
# https://github.com/glmmTMB/glmmTMB/issues/275
isTRUE(x$sdr$pdHess)
}

#' @export
check_convergence._glm <- function(x, ...){
isTRUE(x$fit$converged)
}

0 comments on commit db9190e

Please sign in to comment.