locfit (version 19980714-2)

preplot.locfit: Prediction from a Locfit object.

Usage

preplot(object, newdata, se.fit=F, deriv, tr, what, get.data=F, f3d=F)

Arguments

object
Fitted object from locfit().
newdata
Points to predict at. Can be given in several forms: vector/matrix; list, data frame.
se.fit
If TRUE, standard errors are computed along with the fitted values.
deriv
vector to control prediction and plotting of derivatives. E.g. deriv=1 for the local slope; deriv=c(1,1) for local curvature.
tr
Transformation for likelihood models. Default is the inverse of the link function.
what
What to predict/plot. Default is coef (the local fit). Other choices are infl (influence function); nlx (length of weight diagram); band (bandwidth); degr (local polynomial degree).
get.data
If TRUE, the original data is attached to the returned object, and added to the plot.
f3d
If TRUE, forces a trellis plot.

Value

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

See Also

locfit, predict.locfit, plot.locfit.