[R] Polynomial regression help

ascentnet ascentnet at yahoo.com
Tue Aug 19 02:55:19 CEST 2008


I have a simple X, Y data frame that I am trying to run regression analysis
on.  The linear regression looks great, but when I use lm(formula = y ~
poly(x, degree = 5)) I get the same coeffecients.  So for example if I use
degree =3 my formula would look like y = 4.2 x^3 + 3.2x^2 + 2.1x + 1.0 and
my degree 5 would look like y = 6.5x^5+ 5.4x^4 + 4.2 x^3 + 3.2x^2 + 2.1x +
1.0, which doesn't make sense to me.

I was wondering if someone knew what I was doing wrong or if this is
correct?

thanks,
Ben.
-- 
View this message in context: http://www.nabble.com/Polynomial-regression-help-tp19042447p19042447.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list