[R] loess

Liaw, Andy andy_liaw at merck.com
Thu Feb 20 16:41:02 CET 2003


If your data are generated from a polynomial of degree p, then a local
polynomial smoother of degree p will reproduce that polynomial *exactly*.

You can find out how to change the span to loess by reading its help page.

Andy


> -----Original Message-----
> From: wensui liu [mailto:liuwensui at hotmail.com]
> Sent: Thursday, February 20, 2003 10:30 AM
> To: R-help at stat.math.ethz.ch
> Subject: [R] loess
> 
> 
> Dear Users,
> 
> I tried to use loess to fit a simple local quadratic: 
> loess(y~x).  But it returned the exact y value to me. (residuals==0)
> 
> Is it too good to be true? How do I specify the SPAN in loess 
> function?
> 
> Thanks a lot.
> 
> 
> 
> 
> 
> 	[[alternate HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 


------------------------------------------------------------------------------




More information about the R-help mailing list