Question
- Recreate the following model and store it in
lm.fit
:
\[{medv} = \beta_{0} + \beta_{1} {lstat} + \beta_{2} {lstat}^2 + \beta_{3} {crim} +\beta_{4} {lstat}*{crim} +\beta_{5} \log({rm})\]
Assume that:
- The
MASS
library has been loaded
- The
Boston
dataset has been loaded and attached