I performed a simple linear regression on my data, but I want to increase the model complexity, using R.
I was told to use:
lm(y ~ poly(x, degree = n))
to increase the degree of the polynomial to $n$, but this doesn't seem right to me.
For example, I get different estimates and standard errors when I compare:
lm(y ~ x)
and
lm(y ~ poly(x, degree = 1))
Shouldn't they be the same? Sorry if this isn't much information. Still learning R and statistics.