LOCFIT: R and S-Plus Help | ||||
locfit(formula, data, weights, cens, base, subset, geth, ..., lfproc)
locfit is the model formula-based interface to the Locfit
library for fitting local regression and likelihood models.
Arguments:
locfit is implemented as a front-end to locfit.raw. See that function for options to control smoothing parameters, fitting family and other aspects of the fit.
An object with class "locfit". A standard set of methods for printing,
ploting, etc. these objects is provided.
See Also:
Examples:
# fit and plot a univariate local regression data(ethanol) fit <- locfit(NOx~E,data=ethanol) plot(fit,get.data=T) # a bivariate local regression with smaller smoothing parameter fit <- locfit(NOx~E+C, data=ethanol, scale=0, alpha=0.5) plot(fit) # density estimation data(geyser) fit <- locfit(~geyser, alpha=c(0.1,0.8)) plot(fit,get.data=T)
Loader, C. (1999). Local Regression and Likelihood. Springer, New York.
Key Words:
smooth
| ||||
|
Built: Thu Dec 2 16:56:05 EST 2004
Copyright © 2004, Catherine Loader locfit@herine.net | ||||