LogRegR2 {descr} | R Documentation |
The function calculates multiple R² analogues (pseudo R²) of logistic regression.
LogRegR2(model)
model |
A logistic regression model. |
The function calculates McFaddens R², Cox & Snell Index, and Nagelkerke Index of a logistic regression model.
A object of class list
with the calculated indexes.
Dirk Enzmann
# Suppose that "happy" is a factor and "income" is a numeric # vector in a data frame: ## Not run: m <- glm(happy ~ income, family=binomial(link="logit")) LogRegR2(m) ## End(Not run)