model_matrix | R Documentation |
Grow a model matrix while at the same time compactly encoding missingness patterns in RHS variables of a model frame.
model_matrix(object, data = environment(object), remove.intercept = TRUE, ...)
object |
Model formula or terms object (as in 'model.matrix') |
data |
data.frame, as in 'model.matrix()' but has to have ‘ |
remove.intercept |
logical |
... |
passed to 'model.matrix.default' (and further) |
ModelMatrixPlus, i.e. model matrix enriched with missing data info
Ben B Hansen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.