logLik.UPG.MNL {UPG} | R Documentation |
logLik
can be used to compute log-likelihoods from UPG.MNL
objects. The log-likelihood is based on the posterior mean of the coefficients and can be used for model selection when combined with,e.g., BIC
or other model selection criteria.
## S3 method for class 'UPG.MNL' logLik(object = NULL, ...)
object |
an object of class |
... |
other logLik parameters. |
Returns a numeric of class logLik
with attributes containing the number of estimated parameters and the number of observations.
Gregor Zens
summary.UPG.MNL
to summarize the estimates of a discrete choice model from an UPG.MNL
object and create tables.
plot.UPG.MNL
to plot the results of a discrete choice model from an UPG.MNL
object.
coef.UPG.MNL
to extract coefficients from an UPG.MNL
object.
# estimate a multinomial logit model using example data library(UPG) data(program) y = program[,1] X = program[,-1] results.mnl = UPG(y = y, X = X, type = "mnl") # extract log-likelihood ll.mnl = logLik(results.mnl) # compute BIC BIC(ll.mnl)