r2_nagelkerke: Nagelkerke's R2

Description Usage Arguments Value References Examples

View source: R/r2_nagelkerke.R

Description

Calculate Nagelkerke's pseudo-R2.

Usage

1

Arguments

model

A generalized linear model, including cumulative links resp. multinomial models.

...

Currently not used.

Value

A named vector with the R2 value.

References

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

Examples

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

Example output

Nagelkerke's R2 
      0.5899593 

performance documentation built on Oct. 1, 2021, 5:08 p.m.