LOCFIT: R and S-Plus Help | ||||
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.
Arguments:
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)
}
Key Words:
models
| ||||
|
Built: Thu Dec 2 16:56:05 EST 2004
Copyright © 2004, Catherine Loader locfit@herine.net | ||||