predx predy rclsum
The predy function returns the predicted Y value using the curve calculated by the lr function, as follows: