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