Fitting a polynomial regression model with lm

Some predictor variables and response variables may have a non-linear relationship, and their relationship can be modeled as an nth order polynomial. In this recipe, we will introduce how to deal with polynomial regression using the lm and poly functions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset