Skip to contents

A function for calculating the pseudo R^2 of a glm object

Usage

glm_pseudor2(mod)

Arguments

mod

The model for which to calculate the pseudo R^2

Value

The pseudo R^2 value of the model

Examples

gmod <- glm(Sepal.Length ~ Petal.Length + Species, data = iris)
glm_pseudor2(gmod)
#> [1] 0.8367238