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]]
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 > stat.math.ethz.ch/mailman/listinfo/r-help >------------------------------------------------------------------------------