model.matrix.mars | R Documentation |
Produce a design matrix from a ‘mars’ object.
## S3 method for class 'mars'
model.matrix(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 |
full |
if |
... |
further arguments to be passed from or to methods. |
A model matrix corresponding to the selected columns.
mars
,
predict.mars
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.