Where do I nominate this to be a fortune ? Q (Karl Ove Hufthammer ): Why not use 'predict.loess' (i.e., 'predict' on a loess object) directly? A (Greg Snow): Because that would be simple, straight forward, and make sense, and not require knowledge about less obvious functions.
Although for the protocol, Your correspondence did just help me - thank you :) Tal ----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Tue, Nov 24, 2009 at 7:35 PM, Greg Snow <greg.s...@imail.org> wrote: > > > -----Original Message----- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Karl Ove Hufthammer > > Sent: Tuesday, November 24, 2009 1:11 AM > > To: r-h...@stat.math.ethz.ch > > Subject: Re: [R] Loess Fit > > > > On Mon, 23 Nov 2009 14:03:11 -0700 Greg Snow <greg.s...@imail.org> > > wrote: > > > If you need a function to reproducibly generate predictions, then > > > use loess to generate a set of predictions for a reasonably dense set > > > of x-values, then use approxfun or splinefun to create a function to > > > interpolate for you. Then this function can give the predictions for > > > various x values. > > > > Why not use 'predict.loess' (i.e., 'predict' on a loess object) > > directly? > > > > -- > > Karl Ove Hufthammer > > > > Because that would be simple, straight forward, and make sense, and not > require knowledge about less obvious functions. > > Actually approxfun and splinefun return functions, predict.loess does not. > But since the original poster has multiple x variables, approxfun and > splinefun will not work, in another branch I have already suggested that he > create his own function using predict.loess. > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.