r2_nagelkerke function

Nagelkerke's R2

Nagelkerke's R2

Calculate Nagelkerke's pseudo-R2.

r2_nagelkerke(model, ...)

Arguments

  • model: A generalized linear model, including cumulative links resp. multinomial models.
  • ...: Currently not used.

Returns

A named vector with the R2 value.

Examples

model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_nagelkerke(model)

References

Nagelkerke, N. J. (1991). A note on a general definition of the coefficient of determination. Biometrika, 78(3), 691-692.

  • Maintainer: Daniel Lüdecke
  • License: GPL-3
  • Last published: 2025-01-15