| locfit | Local Regression, Likelihood and Density Estimation. | locfit |
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.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.
locfit.raw
# 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.
smooth
| Locfit Home | Help Index |