r2_mcfadden | R Documentation |
Calculates McFadden's pseudo R2.
r2_mcfadden(model, ...)
model |
Generalized linear or multinomial logit ( |
... |
Currently not used. |
For most models, a list with McFadden's R2 and adjusted McFadden's R2 value. For some models, only McFadden's R2 is available.
McFadden, D. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82.
McFadden, D. (1973). Conditional logit analysis of qualitative choice behavior.
if (require("mlogit")) {
data("Fishing", package = "mlogit")
Fish <- mlogit.data(Fishing, varying = c(2:9), shape = "wide", choice = "mode")
model <- mlogit(mode ~ price + catch, data = Fish)
r2_mcfadden(model)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.