Skip to content

Commit

Permalink
ICC for beta_family not accurate #742
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 8, 2024
1 parent a4a410e commit 96dadfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/r2.R
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ r2.glm <- function(model, ci = NULL, verbose = TRUE, ...) {
insight::format_warning("Can't calculate accurate R2 for binomial models that are not Bernoulli models.")
}
out <- NULL
} else if (info$is_orderedbeta) {
# ordered-beta-regression
out <- r2_ferrari(model, correct_bounds = TRUE)
} else if (info$is_beta) {
# beta-regression
out <- r2_ferrari(model)
} else {
out <- list(R2_Nagelkerke = r2_nagelkerke(model, ...))
names(out$R2_Nagelkerke) <- "Nagelkerke's R2"
Expand Down

0 comments on commit 96dadfd

Please sign in to comment.