Rdocumentation
powered by
Learn R Programming
ipred (version 0.4-6)
mypredict.lm: Predictions based on Linear Models
Description
Function to predict a vector of full length (number of observations), where predictions according to missing explanatory values are replaced by
NA
.
Usage
mypredict.lm(object, newdata)
Arguments
object
an object of class
lm
.
newdata
matrix or data frame to be predicted according to
object
.
Value
Vector of predicted values.