LOCFIT: R and S-Plus Help | ||||
smooth.lf(x, y, xev=x, direct=F, ...)
smooth.lf is a simple interface to the Locfit library.
The input consists of a predictor vector (or matrix) and response.
The output is a list with vectors of fitting points and fitted values.
Most locfit.raw options are valid.
Arguments:
A list with components x (fitting points) and y (fitted values).
Also has a call component, so update() will work.
Examples:
# using smooth.lf() to fit a local likelihood model. data(morths) fit <- smooth.lf(morths$age,morths$deaths,weights=morths$n,family="binomial") plot(fit,type="l") # update with the direct fit fit1 <- update(fit,direct=T) lines(fit1,col=2) print(max(abs(fit$y-fit1$y))) Key Words:
smooth
| ||||
|
Built: Thu Dec 2 16:56:05 EST 2004
Copyright © 2004, Catherine Loader locfit@herine.net | ||||