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:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 10:30 AM > To: [EMAIL PROTECTED] > 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]] > > ______________________________________________ > [EMAIL PROTECTED] mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help > ------------------------------------------------------------------------------ ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
