Re: [R] Problem getting loess tricubic weights

2013-01-10 Thread Greg Snow
To further the understanding of the loess fit and how the tricube weight work you may want to look at the loess.demo function in the TeachingDemos package. It will create a scatterplot of the data and show the loess fit, then when you click on the plot it will show the weights used for predicting

Re: [R] Problem getting loess tricubic weights

2013-01-10 Thread joycelin12
Thank you Mr Snow. I will look into it. Best regards Joyce Lin On 11 Jan, 2013, at 3:55 AM, Greg Snow 538...@gmail.com wrote: To further the understanding of the loess fit and how the tricube weight work you may want to look at the loess.demo function in the TeachingDemos package. It

Re: [R] Problem getting loess tricubic weights

2013-01-09 Thread Joyce Lin
Thank you Mr Gunter! I will look into it. On Wed, Jan 9, 2013 at 11:59 AM, Bert Gunter gunter.ber...@gene.com wrote: As this does not seem to have been answered... I believe you may misunderstand how loess works. The tricube weights are part of the smoothing algorithm and change with each

[R] Problem getting loess tricubic weights

2013-01-08 Thread Joyce Lin
Hi I am trying to get the tricube weights from the loess outputs as I need to calculate an error function which requires the weight. So I have used the following example from the R: cars.lo - loess(dist ~ speed, cars, span=0.5, degree=1, family=symmetric) Then i try to get the weights:

Re: [R] Problem getting loess tricubic weights

2013-01-08 Thread Bert Gunter
As this does not seem to have been answered... I believe you may misunderstand how loess works. The tricube weights are part of the smoothing algorithm and change with each local fit, not fixed weights for observations, which is what the weights argument provides (and initially multiplies the