grab_design_matrix | R Documentation |
Grab a matrix of fixed effects from a model object
grab_design_matrix(data, rhs_formula, ...)
data |
the data from which to extract the matrix |
rhs_formula |
the right hand side of a model formula |
... |
Can be used to pass |
a model.matrix
# Create a "desigm" matrix for the first ten rows of iris data
fit <- lm(Sepal.Width ~ Petal.Width, data = iris)
grab_design_matrix(
data = iris[1:10, ],
grab_fixed_formula(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.