Use new input data and a fitted linear model to predict corresponding outcomes.
# S3 method for linear
predict(object, Z, ...)
A numeric vector of predictions. For binary outcomes, this is a vector with estimates for
\(P(Y=1 \mid X = x)\).
Fitted linear
model
Numeric vector of new input samples
Ignored additional parameters
For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.