Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-4/5j/ii/solution

The other quantitative columns are mpg, psngr, length, width, and weight, so use
fit2 <- lm(log(price) ~ mpg + psngr + length + width + weight, data = cars)
This is a normal linear model with an intercept and five slopes.

New to topics? Read the docs here!