Constructs the design matrix used to fit a
a fitted model of class
other arguments to be passed to further methods (typically only used internally)
There are two types of model matrix a user might want to construct.
First, there is the matrix of the raw input terms that go into the
eventual polynomial expansion. Such a matrix can be obtained by using
type = "raw" (the default). The other form of the model matrix is
the full polynomial expansion, where each column contains some power of
the raw inputs. This can be obtained by using
type = "expanded".
The design matrix of the specified model, consisting either of raw
terms or the full polynomial expansion depending on the
Brenton Kenkel and Curtis S. Signorino
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.