bpr {rgm} | R Documentation |
Performs Bayesian Probit Regression given the predictors and response.
bpr(y, X, offset = 0, theta, theta_0 = c(0, 0, 0), N_sim = 1)
y |
Vector of binary responses. |
X |
Matrix of predictors. |
offset |
Optional offset for the linear predictor. |
theta |
Initial values for the regression coefficients. |
theta_0 |
Prior mean for the regression coefficients. |
N_sim |
Number of simulations to perform. |
A matrix of simulated values for the regression coefficients.