model.matrix.mars: Produce a Design Matrix from a 'mars' Object

Description Usage Arguments Value See Also

Description

Produce a design matrix from a ‘mars’ object.

Usage

1
2
## 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 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.

...

further arguments to be passed from or to methods.

Value

A model matrix corresponding to the selected columns.

See Also

mars, predict.mars



Search within the mda package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.