Creates a matrix of predictors appropriate for glm.spike models.
## S3 method for class 'glm.spike'
model.matrix(object, data = NULL, ...)
An object of class
Either a data frame to use when building the model
Extra arguments passed to
glm.spike objects do not store the predictors used to fit the
model. If the training data is modified between when
is fit and when this function is called, the modifications will
be reflected in the returned value.
The matrix of predictors used at training time, so long as the original data used to fit the model is available in the frame where this function is called.
Steven L. Scott