Polynomial Regression in R Part 1: Theory