make_design_mat {cprobit} R Documentation

## Inpernal function: construct design matrix without the intercept term.

### Description

Inpernal function: construct design matrix without the intercept term.

### Usage

make_design_mat(lp, dat, remove_intercept = TRUE)


### Arguments

 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 TRUE (to remove the intercept term).

### Value

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.

[Package cprobit version 1.0.2 Index]