Vehicle MPG Prediction

Haojun Zhu

This simple app predicts vehicle MPG based on some simple vehicle informations, such as number of cylinders, weight, manufacation year, etc.

The data set can be found here

A simple GLM model is used to fit the data.

mpg <- read.csv("mpg.csv")
modFit <- train(mpg ~ cyl + disp + horse + weight + accel + year + origin, 
method="glm", data=mpg)

This simple app is deployed to Shiny website. You can find it here

Source codes can be found here