model.matrix.mars {mda} | R Documentation |
Produce a Design Matrix from a ‘mars’ Object
Description
Produce a design matrix from a ‘mars’ object.
Usage
## S3 method for class 'mars'
model.matrix(object, x, which, full = FALSE, ...)
Arguments
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 |
full |
if |
... |
further arguments to be passed from or to methods. |
Value
A model matrix corresponding to the selected columns.
See Also
[Package mda version 0.5-4 Index]