Use predict() on a mlm object

DESCRIPTION:

Extracts the fitted values from a mlm object and returns an array of predictions.

USAGE:

predict.mlm(fit, newdata) 

REQUIRED ARGUMENTS:

fit
a fitted mlm object.

OPTIONAL ARGUMENTS:

newdata
a data frame containing the values at which predictions are required. If this argument is missing, predictions are made at the same values used to compute the object. Only those predictors referred to in the right side of the formula in object need be present by name in newdata.

VALUE:

an array of predictions. A standard use of predict is to simply extract the fitted values from the fit object.

SEE ALSO:

, , .

EXAMPLES:

stack.mlm <- lm(stack.x ~ stack.loss) 
predict(stack.mlm)