Learn R Programming

performance (version 0.1.0)

r2_mcfadden: McFadden's R2

Description

Calculates McFadden's pseudo R2.

Usage

r2_mcfadden(model)

Arguments

model

Multinomial Logit (mlogit) Model.

Value

A named vector with the R2 value.

References

  • 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.

Examples

Run this code
# NOT RUN {
library(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)

# }

Run the code above in your browser using DataLab