bayes.probit: Simulates from a probit binary response regression model using data augmentation and Gibbs sampling
Description
Gives a simulated sample from the joint posterior distribution of the regression
vector for a binary response regression model with a probit link and a
informative normal(beta, P) prior. Also computes the log marginal likelihood when
a subjective prior is used.
Usage
bayes.probit(y,X,m,prior=list(beta=0,P=0))
Value
beta
matrix of simulated draws of regression vector beta where each row corresponds to one draw
log.marg
simulation estimate at log marginal likelihood of the model
Arguments
y
vector of binary responses
X
covariate matrix
m
number of simulations desired
prior
list with components beta, the prior mean, and P, the prior precision matrix