Skip to content
Prev 58449 / 398502 Next

Kernel Density estimation - locfit package

Kwabena Adusei-Poku wrote:

            
On the ?locfit help page it says:

      An object with class '"locfit"'. A standard set of methods for
      printing, ploting, etc. these objects is provided.

This implies that there should be a fitted.locfit method. And, indeed, 
there is:

data(ethanol)
x <- ethanol$E
fit <- locfit(~ x)
plot(x[order(x)], fitted(fit)[order(x)], type = "n")

HTH,

--sundar