make_design_mat {cprobit} | R Documentation |
Inpernal function: construct design matrix without the intercept term.
make_design_mat(lp, dat, remove_intercept = TRUE)
lp |
Formula for the linear predictor part, as a string. |
dat |
Data to construct the design matrix from. |
remove_intercept |
Whether the first column should be removed. Default
is |
Returns a list containing the constructed design matrix and the
original variable names. In the column names of the design matrix returned
, any :
in variable names are replaced with .
to avoid
computational issues when using the design matrix to fit model.