The Idea

A simple app that predicts fuel efficiency (MPG) based on: - Car weight
- Engine cylinders

Built using real data from mtcars.


How It Works


Example (Live R Code)

model <- lm(mpg ~ wt + cyl, data = mtcars)
predict(model, data.frame(wt = 3, cyl = 6))
##        1 
## 21.06658

Why It’s Useful


Try It Yourself