Matt Baumer
7-21-16
Everyone loves travelling but it can be SO EXPENSIVE
Using a state-of-the-art database, our experts have built a model that can predict with incredible accuracy the gas mileage of your vehicle
library(ggplot2)
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp + wt + am + gear, data = mtcars)
round(coef(model)[2:7], digits = 2)
cyl disp hp wt am gear
-1.09 0.01 -0.03 -3.31 1.46 0.12
Moral of the story is get a light car!