logLik.UPG.Logit | R Documentation |
logLik
can be used to compute log-likelihoods from UPG.Logit
objects. The log-likelihood is based on the posterior mean of the coefficients.
## S3 method for class 'UPG.Logit'
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.Logit
to summarize a UPG.Logit
object and create tables.
plot.UPG.Logit
to plot a UPG.Logit
object.
coef.UPG.Logit
to extract coefficients from a UPG.Logit
object.
# estimate a logit model using example data
library(UPG)
data(lfp)
y = lfp[,1]
X = lfp[,-1]
results.logit = UPG(y = y, X = X, model = "logit")
# extract log-likelihood
ll.logit = logLik(results.logit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.