predict.locfit Prediction from a Locfit object. predict.locfit


predict(object, newdata,, ...)


The locfit function computes a local fit at a selected set of points (as defined by the ev argument). The predict.locfit function is used to interpolate from these points to any other points. The method is based on cubic hermite polynomial interpolation, using the estimates and local slopes at each fit point.

The motivation for this two-step procedure is computational speed. Depending on the sample size, dimension and fitting procedure, the local fitting method can be expensive, and it is desirable to keep the number of points at which the direct fit is computed to a minimum. The interpolation method used by predict.locfit() is usually much faster, and can be computed at larger numbers of points.


Fitted object from locfit().
Points to predict at. Can be given in several forms: vector/matrix; list, data frame.
If TRUE, standard errors are computed along with the fitted values.
Additional arguments to preplot.locfit.


If, a numeric vector of predictors. If, a list with components fit, and residual.scale.


fit <- locfit(NOx~E,data=ethanol)

Key Words:

  Locfit Home   Help Index  

Built: Sat Aug 4 07:44:53 EDT 2001
Copyright © 2000, Lucent Technologies
Author: Catherine Loader