DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Predict

Declaration: TCurveFit.Predict (RegModel: TRegModel; XVal, p: double; PolyOrder: integer; var PredVal, PredIv, ConfIv: double): integer;
The function Predict calculates the predicted y value PredVal at the position XVal for the regression model type specified by the parameter RegModel. In addition to the predicted value the method also calculates the prediction interval (PredIv) and the confidence interval (ConfIv) for the estimated y value. These two intervals are calculated at the confidence level p (valid range: 0.5 ≤ p < 1.0).

The parameter PolyOrder specifies the order of the polynomial in the case of a (centered) polynomial (RegModel = rmPolynomial or RegModel = rmCenteredPoly). For all other types of regression models the value of PolyOrder is ignored.

Please note that this method automatically calls the corresponding regression method to estimate the regression parameters if these parameters are not yet available.