I am new to Regression and R. I know that polynomial functions are used when a regression model does not fit data (underfitting), but I want to know which degree of polynomial should be used? I also want to know that if a regression model uses multiple variables (e.g., y ~ x1+x2+x3+x4) then do I need a polynomial function in this model?
Tell me more
×
Cross Validated is a question and answer site for
statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.
|
|
|||||||||||
|
|
Use polynomial terms if that seems appropriate. As Stephane mentions you can always get better fits with more complicated models but you could be overfitting to the noise. The way to determine the order of the polynomial is to introduce terms of various degrees and test to see which ones if any have their regression coefficient statistically significantly different from 0. When several variables are involved the appropriateness of polynomial terms is no different than if only one covariate is used. You include polynomial terms only if that seems to be appropriate to fitting a model to the data. |
|||||||||||||||||||
|