McFadden's pseudo r-squared for the model.

blr_rsq_mcfadden(model)

Arguments

model

An object of class glm.

Value

McFadden's r-squared.

References

McFadden, D. (1974) “Conditional logit analysis of qualitative choice behavior.” Pp. 105-142 in P. Zarembka (ed.), Frontiers in Econometrics. Academic Press.

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2, family = binomial(link = 'logit')) blr_rsq_mcfadden(model)
#> [1] 0.3072023