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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to