[R] Interpretation of poly(x, y, degree=2) coefficients

From: Simon.Bond <Simon.Bond_at_mrc-bsu.cam.ac.uk>
Date: Wed 21 Jul 2004 - 01:58:29 EST

Does anyone know of a function that turns the coefficients of

lm( y~ poly(x1 , x2, degree=2))

into something that can be interpreted easily. I was think along the lines of the matrix representation of quadratic forms:

(x-mu)'A(x-mu) +k ,

and finding the eigenvectors/values of A, and the vector mu, but anything that allows me to visualise a contour plot would be great.

Thanks

Simon Bond



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 21 02:08:08 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:07 EST