Re: [R] Triangular distribution for kernel regression

2009-09-13 Thread Bryan
Is this option (number of nearest neighbors) translate-able into bandwidth? In reading the kknn article, it seems like it might be but I'm still not exactly sure how. Unfortunately this is an important issue as the end users are used to using certain bandwidth values for their work. It may be

Re: [R] Triangular distribution for kernel regression

2009-09-13 Thread Gabor Grothendieck
If by chance you have an objective function you could automatically calculate the optimum number of nearest neighbors by cross validation eliminating the need to set it in the first place. On Sun, Sep 13, 2009 at 10:19 AM, Bryan thespamho...@gmail.com wrote: Is this option (number of nearest

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Gabor Grothendieck
Try: RSiteSearch(kernel triangular) On Sat, Sep 12, 2009 at 1:51 PM, Bryan thespamho...@gmail.com wrote: Hello, I am trying to get fitted/estimated values using kernel regression and a triangular kernel.  I have found packages that easily fit values from a kernel regression (e.g. ksmooth)

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Bryan
Gabor, Thanks for your quick reply (on a weekend even!) I've looked through the results of the search you recommended, and several related searches, and don't see anything exceptionally helpful. Kernel regression is a relatively new analysis for me; I apologize for needing a little more

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Gabor Grothendieck
What about kknn -- that was listed as having the triangular distribution? On Sat, Sep 12, 2009 at 3:42 PM, Bryan thespamho...@gmail.com wrote: Gabor, Thanks for your quick reply (on a weekend even!)  I've looked through the results of the search you recommended, and several related searches,

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Mark Difford
Hi Brian, I am trying to get fitted/estimated values using kernel regression and a triangular kernel. Look at Loader's locfit package. You are likely to be pleasantly surprised. Regards, Mark. Bryan-65 wrote: Hello, I am trying to get fitted/estimated values using kernel regression

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Bryan
I originally looked over kknn because I need to be able to specify a bandwidth parameter. I am trying to replicate some previous non-R work in R, so I can't stray to far from the procedure used there. In reading the paper referenced in the docs, I see that kknn can reduce to the Nadaraya–Watson

Re: [R] Triangular distribution for kernel regression

2009-09-12 Thread Gabor Grothendieck
You can specify the number of nearest neighbors. On Sat, Sep 12, 2009 at 5:16 PM, Bryan thespamho...@gmail.com wrote: I originally looked over kknn because I need to be able to specify a bandwidth parameter.  I am trying to replicate some previous non-R work in R, so I can't stray to far from