Description Usage Arguments Author(s) Examples
This functions takes a formula and data frame and creates a design matrix that has a column for every level of every factor.
1 2 | overparametrized_model.matrix(formula, data, remove.constant = TRUE,
intercept = TRUE)
|
formula |
Righ hand side of formula for which a design matrix is desired. |
data |
|
remove.constant |
Logical indicating whether columns that never vary should be removed. Most commonly these are due to specific combinations of factors that never happen on the dataset. |
intercept |
Logical indicating whether or not to add an intercept |
Sur from Dangl lab
1 2 3 4 5 | data(Rhizo.map)
X <- overparametrized_model.matrix(~ fraction * accession,
data = Rhizo.map)
image(X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.