coef.UPG.Probit {UPG} | R Documentation |
Extract coefficients from UPG.Probit objects
Description
coef
can be used to extract posterior means and credible intervals based on posterior quantiles from UPG.Probit
objects.
Usage
## S3 method for class 'UPG.Probit'
coef(object, ..., q = c(0.025, 0.975))
Arguments
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. |
Value
Returns a matrix containing posterior means and the desired credible interval.
Author(s)
Gregor Zens
See Also
summary.UPG.Probit
to summarize a UPG.Probit
object and create tables.
predict.UPG.Probit
to predict probabilities using a UPG.Probit
object.
plot.UPG.Probit
to plot a UPG.Probit
object.
Examples
# 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 posterior means and credible interval based on 0.025 and 0.975 quantiles
coef(results.probit, q = c(0.025, 0.975))
[Package UPG version 0.3.4 Index]