predict.linear | R Documentation |
Use new input data and a fitted linear model to predict corresponding outcomes.
## S3 method for class 'linear'
predict(object, Z, ...)
object |
Fitted |
Z |
Numeric vector of new input samples |
... |
Ignored additional parameters |
For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.
A numeric vector of predictions. For binary outcomes,
this is a vector with estimates for
P(Y=1 \mid X = x)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.