Question: Could you please modify the below R code by adding a sqaure of horsepower lm.fit = lm(mpg ~ cylinders + displacement + horsepower + weight
Could you please modify the below R code by adding a sqaure of horsepower
lm.fit = lm(mpg ~ cylinders + displacement + horsepower + weight + acceleration + year + origin + horsepower * weight , data=Auto)
Add another predictor that is the sqaure of horsepower to the existant set of predictors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
