After running some polynomial fitting on wavelength data, I encountered quite different results for poly()
with raw=TRUE enabled and using `I()'.
Some side-information: ln
and T_T0
are colomns of the fbg_data_simp dataframe
reg_fbg<-lm(ln ~ poly(T_T0,2), data=fbg_data_simp,raw=TRUE)
and
reg_fbg<-lm (ln ~ I(T_T0) + I(T_T0^2), data=fbg_data_simp)
Summary's from both variants:
Summary view of top variant Summary view of bottom variant
It's clear both results in very different terms. Any idea why this would be the case? I am probably missing something.