predict.UPG.Probit {UPG} | R Documentation |
predict
generates predicted probabilities from estimated discrete choice models in an UPG.Probit
object. In addition, credible intervals for these probabilities are computed. Probabilities can be predicted from the data used for estimating the model or for a new data set with the same structure.
## S3 method for class 'UPG.Probit' predict(object = NULL, ..., newdata = NULL, q = c(0.025, 0.975))
object |
an object of class |
... |
other predict parameters. |
newdata |
a matrix or a |
q |
a numerical vector of length two holding the posterior quantiles to be extracted. Default are 0.025 and 0.975 quantiles. |
Returns a list containing posterior means of predicted probabilities as well as the desired credible interval.
Gregor Zens
summary.UPG.Probit
to summarize the estimates of a discrete choice model from an UPG.Probit
object and create tables.
plot.UPG.Probit
to plot the results of a discrete choice model from an UPG.Probit
object.
coef.UPG.Probit
to extract coefficients from an 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, type = "probit", verbose=TRUE) # extract predicted probabilities predict(results.probit)