David Grabiner
2009-Dec-08 17:33 UTC
[R] coefficients of each local polynomial from locfit
Hi list, This was asked a couple of years ago but I can't find a resolution. Is there any way to get the coefficients from one of the local polynomial fits in locfit. I realize that locfit only constructs polynomials at a handful of intelligently selected points and uses interpolation to predict any other points. I would like to know the terms of the polynomials at these points. It seems likely that they are stored in [locfit object]$eva$coef but I'm having trouble making sense of that list. That list is the second argument passed into the C function spreplot called from preplot.locfit.raw if that helps. Thanks, David [[alternative HTML version deleted]]
David Winsemius
2009-Dec-08 17:44 UTC
[R] coefficients of each local polynomial from locfit
On Dec 8, 2009, at 12:33 PM, David Grabiner wrote:> Hi list, > > This was asked a couple of years ago but I can't find a resolution. > Is > there any way to get the coefficients from one of the local > polynomial fits > in locfit. I realize that locfit only constructs polynomials at a > handful > of intelligently selected points and uses interpolation to predict > any other > points.That is not my understanding of what locfit does. I could be wrong and am interested in correcting my misunderstanding if that is the case. I thought a polynomial was fit at _each_ point. What pages in Loader's book should I be reading.> I would like to know the terms of the polynomials at these points. > It seems likely that they are stored in [locfit object]$eva$coef but > I'm > having trouble making sense of that list. That list is the second > argument > passed into the C function spreplot called from preplot.locfit.raw > if that > helps. > > Thanks, > David-- David Winsemius, MD Heritage Laboratories West Hartford, CT