preplot.locfit Prediction from a Locfit object. preplot.locfit


preplot(object, newdata, where, tr=NULL, what="coef",
band="none",, f3d=F)


Fitted object from locfit().
Points to predict at. Can be given in several forms: vector/matrix; list, data frame.
An alternative to \textttnewdata. Choices include "grid" for the grid lfmarg(object); "data" for the original data points and "fitp" for the direct fitting points (ie. no interpolation).
Transformation for likelihood models. Default is the inverse of the link function.
What to compute predicted values of. The default, what="coef", works with the fitted curve itself. Other choices include "nlx" for the length of the weight diagram; "infl" for the influence function; "band" for the bandwidth; "degr" for the local polynomial degree; "lik" for the maximized local likelihood; "rdf" for the local residual degrees of freedom and "vari" for the variance function. The interpolation algorithm for some of these quantities is questionable.
Compute standard errors for the fit and include confidence bands on the returned object. Default is "none". Other choices include "global" for bands using a global variance estimate; "local" for bands using a local variance estimate and "pred" for prediction bands (at present, using a global variance estimate). To obtain the global variance estimate for a fit, use rv. This can be changed with rv<-. Confidence bands, by default, are 95 To change the critical value or confidence level, or to obtain simultaneous instead of pointwise confidence, the critical value stored on the fit must be changed. See the kappa0 and crit functions.
If TRUE, the original data is attached to the returned object, and added to the plot.
If TRUE, sets a flag that forces ploting using the trellis style. Not available in R.


An object with class "preplot.locfit", containing the predicted values and additional information used to construct the plot.


preplot.locfit can be called directly, although it is more usual to call plot.locfit or predict.locfit. The advantage of preplot.locfit is in S-Plus 5, where arithmetic and transformations can be performed on the "preplot.locfit" object.

plot(preplot(fit)) is essentially synonymous with plot(fit).

See Also:

locfit, predict.locfit, plot.locfit.

Key Words:

  Locfit Home   Help Index  

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