[R-lang] poly () - which type of orth. polynomials is used?

Nathaniel Smith njs at pobox.com
Thu Feb 14 21:23:24 PST 2008


On Thu, Feb 14, 2008 at 08:44:55PM +0100, Laura Herbst wrote:
> I have been trying to find out which type of orthogonal polynomial the
> poly() function is based on, but I didn't find it in the help pages or
> anywhere else.
> Does anyone know whether they are Legendre polynomials, or a different type?
>
> (I want to reconstruct curves on the basis of the calculated coefficients.)

I don't know anything about poly(), but in most cases where I've
needed to draw fitted curves (e.g., when doing spline fitting), it
turned out that there was a version of the predict() method defined
for my object, and that was what I needed.  I see that there is some
sort of predict() defined on poly objects; does it help?

-- Nathaniel

-- 
Electrons find their paths in subtle ways.



More information about the R-lang mailing list