View source: R/r2_nagelkerke.R
r2_nagelkerke | R Documentation |
Calculate Nagelkerke's pseudo-R2.
r2_nagelkerke(model, ...)
model |
A generalized linear model, including cumulative links resp. multinomial models. |
... |
Currently not used. |
A named vector with the R2 value.
Nagelkerke, N. J. (1991). A note on a general definition of the coefficient of determination. Biometrika, 78(3), 691-692.
model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial")
r2_nagelkerke(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.