fitted.locfit {locfit}R Documentation

Fitted values for a `"locfit"' object.

Usage

fitted(object, data, what="coef", cv=F, studentize=F, type="fit", tr)

Arguments

object "locfit" object.
data The data frame for the original fit. Usually, shouldn't be needed.
what What to compute fitted 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.
cv If TRUE, leave-one-out cross validated fitted values are approximated. Won't make much sense, unless what="coef".
studentize If TRUE, residuals are studentized.
type Type of fit or residuals to compute. The default is "fit" for fitted.locfit, and "dev" for residuals.locfit. Other choices include "pear" for Pearson residuals; "raw" for raw residuals, "ldot" for likelihood derivative; "d2" for the deviance residual squared; lddot for the likelihood second derivative. Generally, type should only be used when what="coef".
tr Back transformation for likelihood models.

Value

A numeric vector of the fitted values.


[Package Contents]