model.matrix.glm.spike {BoomSpikeSlab} | R Documentation |
Creates a matrix of predictors appropriate for glm.spike models.
## S3 method for class 'glm.spike' model.matrix(object, data = NULL, ...)
object |
An object of class |
data |
Either a data frame to use when building the model
matrix, or |
... |
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 object
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