Description Usage Arguments Value
View source: R/model_matrix_data_frame.R
An S3 function to return a design matrix given a data.frame
and
a linear regression formula
1 2 | ## S3 method for class 'data.frame'
model.matrix(X, factor_indep_vars, add_intercept)
|
X |
a |
factor_indep_vars |
a vector of names of independent variables whose classes are of |
add_intercept |
a boolean; TRUE requires the design matrix to include a column for an intercept |
the design matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.