AIC.gmnl | R Documentation |
Calculate the Akaike's information Criterion (AIC) or the Bayesian
information Criterion (BIC) for an object of class gmnl
.
## S3 method for class 'gmnl' AIC(object, ..., k = 2) ## S3 method for class 'gmnl' BIC(object, ...)
object |
a fitted model of class |
... |
additional arguments to be passed to or from other functions. |
k |
a numeric value, use as penalty coefficient for number of parameters in the fitted model. |
For more information see AIC
or BIC
A numeric value with the corresponding AIC or BIC value.
gmnl
for the estimation of multinomial logit models with observed and unobserved individual heterogeneity.
## Estimate MNL model data("TravelMode", package = "AER") library(mlogit) TM <- mlogit.data(TravelMode, choice = "choice", shape = "long", alt.levels = c("air", "train", "bus", "car"), chid.var = "individual") mnl <- gmnl(choice ~ wait + vcost + travel + gcost | 0 , data = TM) AIC(mnl) BIC(mnl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.