logLik.UPG.MNL | 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.
## 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 a UPG.MNL
object and create tables.
plot.UPG.MNL
to plot a UPG.MNL
object.
coef.UPG.MNL
to extract coefficients from a 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, model = "mnl")
# extract log-likelihood
ll.mnl = logLik(results.mnl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.