Having fun with feature1*feature2 to your lm() setting throughout the password places both the has actually together with its interaction term from the model, below: > worth
Linear Regression – The newest Clogging and you can Tackling out-of Host Discovering $ indus $ $ $ $ $ $ $ $ $ $ $
: num dos.30 7.07 eight.07 2.18 2.18 dos.18 seven.87 eight.87 seven.87 seven.87 . chas : int 0 0 0 0 0 0 0 0 0 0 . nox : num 0.538 0.469 0.469 0.458 0.458 0.458 0.524 0.524 0.524 0.524 . rm : num six.58 6.42 seven.18 7 seven.fifteen . ages : num 65.dos 78.9 61.1 forty-five.8 54.dos 58.seven 66.6 96.1 100 85.nine . dis : num 4.09 cuatro.97 4.97 6.06 6.06 . rad : int step one dos 2 3 step 3 step three 5 5 5 5 . tax : num 296 242 242 222 222 222 311 311 311 311 . ptratio: num 15.3 17.8 17.8 18.7 18.7 18.seven 15.dos 15.2 15.dos fifteen.2 . Continue reading