get_modelmatrix {insight} | R Documentation |
Creates a design matrix from the description. Any character variables are coerced to factors.
get_modelmatrix(x, ...)
x |
An object. |
... |
Passed down to other methods (mainly |
data(mtcars)
model <- lm(am ~ vs, data = mtcars)
get_modelmatrix(model)