predict.numeric: Predict Method for Numeric Vectors
Description
Interprets the provided numeric vector as linear model and uses
it to generate predictions. If an element of the numeric vector has the name
"Intercept" this element is treated as the intercept of the linear model.
Usage
# S3 method for numeric
predict(object, newdata, ...)
Value
Named numeric vector of predicted scores
Arguments
object
Named numeric vector of beta values. If an element is named
"Intercept", that element is interpreted as model intercept.
newdata
Matrix with samples as rows and features as columns.