Skip to content
Prev 247872 / 398503 Next

Obtaining a quadratic function igven three points on a curve

I think you need poly(X, 2,  raw = TRUE) to interpret the coefficients 
in the manner described below.

poly uses orthogonal polynomials by default:

poly                   package:stats                   R Documentation

Compute Orthogonal Polynomials

Description:

      Returns or evaluates orthogonal polynomials of degree 1 to
      'degree' over the specified set of points 'x'. These are all
      orthogonal to the constant polynomial of degree 0.  Alternatively,
      evaluate raw polynomials.


David Scott
On 21/01/2011 3:50 a.m., Joshua Wiley wrote: