powered by
Creates a design matrix from the description. Any character variables are coerced to factors.
get_modelmatrix(x, ...)
An object.
Passed down to other methods (mainly model.matrix()).
model.matrix()
data(mtcars) model <- lm(am ~ vs, data = mtcars) get_modelmatrix(model)
Run the code above in your browser using DataLab