lf Locfit term in Additive Model formula lf

Usage:


lf(..., alpha=0.7, deg=2, scale=1, kern="tcub", ev="tree", maxk=100)

Description:

This function is used to specify a smooth term in a gam() model formula.

At the time of writing, gam is not available in R.

Arguments:

...
numeric predictor variable(s)
alpha
and other arguments are as in locfit.raw().

Examples:


# fit an additive semiparametric model to the ethanol data.
if (exists("gam")) {  # shut up R's checks
fit <- gam(NOx~lf(E)+C,data=ethanol)
plot(fit)
}

See Also:

locfit, locfit.raw, gam.lf, gam

Key Words:

models
  Locfit Home   Help Index  

Built: Sat Aug 4 07:44:53 EDT 2001
Copyright © 2000, Lucent Technologies
Author: Catherine Loader