model.matrix | R Documentation |
Extract the matrix of predictors.
GetPredictorMatrix(object, newdata, na.action = na.omit, ...)
object |
An object of class glm.spike. The object must be a list with the following elements
|
newdata |
A data frame, matrix, or vector containing the predictors needed to make a prediction. If newdata is a matrix it must have the same number of columns as length(object$beta), unless it is off by one and the model contains an intercept, in which case an intercept term will be added. If length(object$beta) == 1 (or 2, with one element containing an intercept) then newdata can be a numeric vector. |
na.action |
A function specifying what to do with |
... |
Extra arguments passed to |
A matrix of predictor variables suitable for multiplication by
object$beta
.
Steven L. Scott
lm.spike
SpikeSlabPrior
plot.lm.spike
predict.lm.spike
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.