coef.UPG.Binomial {UPG} | R Documentation |
coef
can be used to extract posterior means and credible intervals based on posterior quantiles from UPG.Binomial
objects.
## S3 method for class 'UPG.Binomial' coef(object, ..., q = c(0.025, 0.975))
object |
an object of class |
... |
other coef parameters. |
q |
a numerical vector of length two holding 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.Binomial
to summarize the estimates of a discrete choice model from an UPG.Binomial
object and create tables.
predict.UPG.Binomial
to predict probabilities from a discrete choice model from an UPG.Binomial
object.
plot.UPG.Binomial
to plot the results of a discrete choice model from an UPG.Binomial
object.
# estimate a binomial logit model using example data library(UPG) data(titanic) y = titanic[,1] Ni = titanic[,2] X = titanic[,-c(1,2)] results.binomial = UPG(y = y, X = X, Ni = Ni, type = "binomial") # extract posterior means and credible interval based on 0.025 and 0.975 quantiles coef(results.binomial, q = c(0.025, 0.975))