LOCFIT: R and S-Plus Help

These help pages were initially prepared for Locfit in R. For S and S-Plus users, the data() statements in many examples are unnecessary.

Locfit Fitting Functions

density.lf Density estimation using Locfit
fitted.locfit Fitted values for a `"locfit"' object.
hatmatrix Weight diagrams and the hat matrix for a local regression model.
kappa0 Critical Values for Simultaneous Confidence Bands.
locfit.censor Censored Local Regression
locfit.quasi Local Quasi-Likelihood with global reweighting.
locfit.raw Local Regression, Likelihood and Density Estimation.
locfit Local Regression, Likelihood and Density Estimation.
locfit.robust Robust Local Regression
scb Simultaneous Confidence Bands
smooth.lf Local Regression, Likelihood and Density Estimation.
spence.15 Spencer's 15 point graduation rule.
spence.21 Spencer's 21 point graduation rule.
Locfit Model Formula Functions

ang Angular Term for a Locfit model.
cpar Conditionally parametric term for a Locfit model.
formula.locfit Formula from a Locfit object.
gam.lf Locfit call for Generalized Additive Models
left One-sided left smooth for a Locfit model.
lf Locfit term in Additive Model formula
locfit.matrix Reconstruct a Locfit model matrix.
right One-sided right smooth for a Locfit model.
Model Building and Selection

aicplot Compute an AIC plot.
aic Compute Akaike's Information Criterion.
cpplot Compute a Cp plot.
cp Compute Mallows' Cp for local regression models.
gcvplot Compute a generalized cross-validation plot.
gcv Compute generalized cross-validation statistic.
kdeb Bandwidth selectors for kernel density estimation.
lcvplot Compute the likelihood cross-validation plot.
lcv Compute Likelihood Cross Validation Statistic.
lscv.exact Exact LSCV Calculation
lscvplot Compute the LSCV plot.
lscv Least Squares Cross Validation Statistic.
regband Bandwidth selectors for local regression.
sjpi Sheather-Jones Plug-in bandwidth criterion.
Plot, Print, Summary methods

plot.gcvplot Produce a cross-validation plot.
plot.locfit.1d Plot a one dimensional "preplot.locfit" object.
plot.locfit.2d Plot a two-dimensional "preplot.locfit" object.
plot.locfit.3d Plot a high-dimensional "preplot.locfit" object using trellis displays.
plot.locfit Plot an object of class locfit.
plot.scb Plot method for simultaneous confidence bands
preplot.locfit.raw Prediction from a Locfit object.
print.gcvplot Print method for gcvplot objects
print.locfit Print method for "locfit" object.
print.preplot.locfit Print method for preplot.locfit objects.
print.scb Print method for simultaneous confidence bands
print.summary.locfit Print a Locfit summary object.
summary.gcvplot Summary method for a gcvplot structure.
summary.locfit Print method for a locfit object.
summary.preplot.locfit Summary method for a preplot.locfit object.
Datasets

aisAustralian Institute of Sport Dataset
badExample dataset for bandwidth selection
borderCricket Batting Dataset
chemdiabChemical Diabetes Dataset
claw54Claw Dataset
cldemExample data set for classification
cltestTest dataset for classification
cltrainTraining dataset for classification
co2Carbon Dioxide Dataset
diabExhaust emissions
ethanolExhaust emissions
gam.slistVector of GAM special terms
geyserOld Faithful Geyser Dataset
geyser.roundDiscrete Old Faithful Geyser Dataset
heartSurvival Times of Heart Transplant Recipients
insectInsect Dataset
irisFisher's Iris Data (subset)
kangarooKangaroo skull measurements dataset
livmetliver Metastases dataset
mcycAcc(De?)celeration of a Motorcycle Hitting a Wall
mineFracture Counts in Coal Mines
mmsampTest dataset for minimax Local Regression
morthsHenderson and Sheppard Mortality Dataset
pennyPenny Thickness Dataset
spencerSpencer's Mortality Dataset
stampStamp Thickness Dataset
trimodGenerated sample from a bivariate trimodal normal mixture
Other Functions

crit<- Substitute critical values on "locfit" object.
crit Compute critical values for confidence intervals.
expit Inverse logistic link function
grid Local Regression, Likelihood and Density Estimation.
km.mrl Mean Residual Life using Kaplan-Meier estimate
knots Extraction of fit-point information from a Locfit object.
lfbas User-specified basis functions for Locfit.
lfeval Extract Locfit Evaluation Structure.
lflim Construct Limit Vectors for Locfit fits.
lfmarg Generate grid margins.
lines.locfit Add `locfit' line to existing plot
panel.locfit Locfit panel function
panel.xyplot.lf Locfit panel function
plotbyfactor x-y scatterplot, colored by levels of a factor.
plot.eval Plot evaluation points from a 2-d locfit object.
plot.lfeval Plot a Locfit Evaluation Structure.
plot.preplot.locfit Plot a "preplot.locfit" object.
points.locfit Add `locfit' points to existing plot
predict.locfit Prediction from a Locfit object.
preplot.locfit Prediction from a Locfit object.
print.lfeval Print the Locfit Evaluation Points.
rbox Local Regression, Likelihood and Density Estimation.
residuals.locfit Fitted values for a Locfit object.
rv<- Substitute variance estimate on a "locfit" object.
rv Residual variance from a "locfit" object.
store Save S functions.