ModelMatrix | R Documentation |
This model matrix is similar to model.matrix
. But it does not omit unnecessary columns.
ModelMatrix(Formula, Data, KeepOrder=FALSE, XpX=FALSE)
Formula |
a conventional formula for a linear model |
Data |
a |
KeepOrder |
If |
XpX |
If |
It makes the model(design) matrix for GLM
.
Model matrix and attributes similar to the output of model.matrix
.
X |
design matrix, i.e. model matrix |
XpX |
cross-product of the design matrix, X'X |
terms |
detailed information about terms such as formula and labels |
termsIndices |
term indices |
assign |
assignemnt of columns for each term in order, different way of expressing term indices |
Kyun-Seop Bae k@acr.kr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.