ProbitSimulate: Simulate Data from a Probit Regression Model
Description
Function to simulate data from a Probit regression model. User provides a design matrix and a vector of regression coefficients.
Output is a vector of 0/1 responses.
Usage
ProbitSimulate(beta.vec, X)
Arguments
beta.vec
A vector of length p containing the true regression coefficients of the Probit regression model to be simulated from.
X
An n x p design matrix for the Probit regression model to be simulated from.
Value
A vector of length n containing binary outcomes (i.e., 0 or 1).