Learn R Programming

⚠️There's a newer version (19980714-2) of this package.Take me there.

locfit (version 1.5-9.12)

Local Regression, Likelihood and Density Estimation

Description

Local regression, likelihood and density estimation methods as described in the 1999 book by Loader.

Copy Link

Version

Install

install.packages('locfit')

Monthly Downloads

98,393

Version

1.5-9.12

License

GPL (>= 2)

Maintainer

Andy Liaw

Last Published

March 5th, 2025

Functions in locfit (1.5-9.12)

gcvplot

Compute a generalized cross-validation plot.
formula.locfit

Formula from a Locfit object.
left

One-sided left smooth for a Locfit model.
kdeb

Bandwidth selectors for kernel density estimation.
fitted.locfit

Fitted values for a `"locfit"' object.
lcvplot

Compute the likelihood cross-validation plot.
lfeval

Extract Locfit Evaluation Structure.
lf

Locfit term in Additive Model formula
geyser

Old Faithful Geyser Dataset
gcv

Compute generalized cross-validation statistic.
gam.slist

Vector of GAM special terms
kappa0

Critical Values for Simultaneous Confidence Bands.
lfknots

Extraction of fit-point information from a Locfit object.
lfgrid

Locfit - grid evaluation structure.
kangaroo

Kangaroo skull measurements dataset
iris

Fisher's Iris Data (subset)
hatmatrix

Weight diagrams and the hat matrix for a local regression model.
geyser.round

Discrete Old Faithful Geyser Dataset
locfit

Local Regression, Likelihood and Density Estimation.
gam.lf

Locfit call for Generalized Additive Models
mmsamp

Test dataset for minimax Local Regression
lscvplot

Compute the LSCV plot.
panel.xyplot.lf

Locfit panel function
lscv.exact

Exact LSCV Calculation
locfit.censor

Censored Local Regression
dat

Locfit - data evaluation structure.
locfit.matrix

Reconstruct a Locfit model matrix.
locfit.quasi

Local Quasi-Likelihood with global reweighting.
penny

Penny Thickness Dataset
heart

Survival Times of Heart Transplant Recipients
morths

Henderson and Sheppard Mortality Dataset
none

Locfit Evaluation Structure
lp

Local Polynomial Model Term
predict.locfit

Prediction from a Locfit object.
points.locfit

Add `locfit' points to existing plot
plot.gcvplot

Produce a cross-validation plot.
plot.eval

Plot evaluation points from a 2-d locfit object.
lscv

Least Squares Cross Validation Statistic.
plot.locfit

Plot an object of class locfit.
print.gcvplot

Print method for gcvplot objects
plot.scb

Plot method for simultaneous confidence bands
print.lfeval

Print the Locfit Evaluation Points.
plotbyfactor

x-y scatterplot, colored by levels of a factor.
livmet

liver Metastases dataset
lines.locfit

Add locfit line to existing plot
mine

Fracture Counts in Coal Mines
insect

Insect Dataset
mcyc

Acc(De?)celeration of a Motorcycle Hitting a Wall
panel.locfit

Locfit panel function
store

Save S functions.
stamp

Stamp Thickness Dataset
scb

Simultaneous Confidence Bands
plot.preplot.locfit

Plot a "preplot.locfit" object.
summary.gcvplot

Summary method for a gcvplot structure.
summary.locfit

Print method for a locfit object.
sjpi

Sheather-Jones Plug-in bandwidth criterion.
residuals.locfit

Fitted values and residuals for a Locfit object.
right

One-sided right smooth for a Locfit model.
lcv

Compute Likelihood Cross Validation Statistic.
km.mrl

Mean Residual Life using Kaplan-Meier estimate
density.lf

Density estimation using Locfit
preplot.locfit.raw

Prediction from a Locfit object.
print.locfit

Print method for "locfit" object.
summary.preplot.locfit

Summary method for a preplot.locfit object.
spencer

Spencer's Mortality Dataset
spence.21

Spencer's 21 point graduation rule.
plot.locfit.2d

Plot a two-dimensional "preplot.locfit" object.
preplot.locfit

Prediction from a Locfit object.
plot.locfit.1d

Plot a one dimensional preplot.locfit object.
lflim

Construct Limit Vectors for Locfit fits.
plot.lfeval

Plot a Locfit Evaluation Structure.
print.preplot.locfit

Print method for preplot.locfit objects.
locfit.robust

Robust Local Regression
rv

Residual variance from a locfit object.
lfmarg

Generate grid margins.
locfit.raw

Local Regression, Likelihood and Density Estimation.
plot.locfit.3d

Plot a high-dimensional "preplot.locfit" object using trellis displays.
trimod

Generated sample from a bivariate trimodal normal mixture
regband

Bandwidth selectors for local regression.
rva

Substitute variance estimate on a locfit object.
xbar

Locfit Evaluation Structure
rbox

Local Regression, Likelihood and Density Estimation.
print.summary.locfit

Print a Locfit summary object.
spence.15

Spencer's 15 point graduation rule.
print.scb

Print method for simultaneous confidence bands
smooth.lf

Local Regression, Likelihood and Density Estimation.
claw54

Claw Dataset
aicplot

Compute an AIC plot.
aic

Compute Akaike's Information Criterion.
cltest

Test dataset for classification
border

Cricket Batting Dataset
chemdiab

Chemical Diabetes Dataset
diab

Exhaust emissions
cp

Compute Mallows' Cp for local regression models.
ais

Australian Institute of Sport Dataset
bad

Example dataset for bandwidth selection
crit

Compute critical values for confidence intervals.
cpar

Conditionally parametric term for a Locfit model.
cltrain

Training dataset for classification
cldem

Example data set for classification
cpplot

Compute a Cp plot.
co2

Carbon Dioxide Dataset
expit

Inverse logistic link function
ang

Angular Term for a Locfit model.
ethanol

Exhaust emissions