predict.locfit {locfit}R Documentation

Prediction from a Locfit object.

Usage

predict(object, newdata, se.fit=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.
... Additional arguments to preplot.locfit.

Value

If se.fit=F, a numeric vector of predictors. If se.fit=T, a list with components fit, se.fit and residual.scale.

Examples

data(ethanol)
fit <- locfit(NOx~E,data=ethanol)
predict(fit,c(0.6,0.8,1.0))

[Package Contents]