loclm

A bare-bones implementation of local linear regression, using high-level functions. Can handle both numerical and non-numerical (factor) variables. Non-numerical regressors are converted to factors.

Installation

You can install the current version of loclm like so:

install.packages("loclm") # once only

Example

## local linear fit for the stack-loss data

library(loclm)

x <- stack.x
y <- stack.loss
fit <- loclm(x, y, span = 0.5)
yhat <- fitted(fit)

See the help file ?loclm for more examples.

Versions

1.1.0 Improvements for speed:

1.0.0. Initial version, submitted Aug 2026. Three functions: