| lf | Locfit term in Additive Model formula | lf |
lf(..., alpha=0.7, deg=2, scale=1, kern="tcub", ev="tree", maxk=100)
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.
# 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)
}
locfit, locfit.raw, gam.lf, gam
models
| Locfit Home | Help Index |