model.matrix.mars {mda} | R Documentation |
Produce a design matrix from a `mars' object.
model.matrix.mars(object, x, which, full = FALSE, ...)
object |
a mars object. |
x |
optional argument; if supplied, the mars basis functions are evaluated at these new observations. |
which |
which columns should be used. The default is to use the
columns described by the component selected.terms on
object . |
full |
if TRUE the entire set of columns are selected,
even redundant ones. This is used for updating a mars fit. |
A model matrix corresponding to the selected columns.