coef.UPG.Logit | R Documentation |
coef
can be used to extract posterior means and credible intervals based on posterior quantiles from UPG.Logit
objects.
## S3 method for class 'UPG.Logit'
coef(object, ..., q = c(0.025, 0.975))
object |
an object of class |
... |
other coef parameters. |
q |
a numerical vector of length two providing the posterior quantiles to be extracted. Default are 0.025 and 0.975 quantiles. |
Returns a matrix containing posterior means and the desired credible interval.
Gregor Zens
summary.UPG.Logit
to summarize a UPG.Logit
object and create tables.
predict.UPG.Logit
to predict probabilities using a UPG.Logit
object.
plot.UPG.Logit
to plot 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 posterior means and credible interval based on 0.025 and 0.975 quantiles
coef(results.logit, q = c(0.025, 0.975))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.