bayes.probit {LearnBayes} | R Documentation |
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 noninformative prior.
bayes.probit(y,X,m)
y |
vector of binary responses |
X |
covariate matrix |
m |
number of simulations desired |
matrix of simulated draws of regression vector beta where each row corresponds to one draw
Jim Albert
response=c(0,1,0,0,0,1,1,1,1,1) covariate=c(1,2,3,4,5,6,7,8,9,10) X=cbind(1,covariate) m=1000 s=bayes.probit(response,X,m)