[R] How to get the polynomials out of poly()
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Feb 12 11:22:42 CET 2007
plot(raw=TRUE) does this for you: there is little point in fitting by
orthogonal polynomials and then converting back.
As the help page says quite explicitly, poly() does not store the
orthogonal polynomials: please also consult the reference it gives. It
also points out that predict() creates them.
On Mon, 12 Feb 2007, Ernst O Ahlberg Helgee wrote:
> Hi Folks!
> Im using the function poly to generate orthogonal polynomials, but Id like
> to see the actual polynomials so that I could convert it to a polynomial
> in my original variable. Is that possible and if so how do I do it?
> /E
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list