Jawad Rashid
July 24 2014
This section gives some intitution about the different type of models used to predict Miles/gallon.
allModel <- lm(mpg ~ cyl + vs + am + gear + carb, mtcars)
cylModel <- lm(mpg ~ cyl, mtcars)
Here below is the table generated by prediction on different type of model for the input value of 4 cylinder, V Engine, Automatic, 3 Forward Gears, 1 carburetor car:
modelsSummary
Model Miles.Gallon
1 All 22.61
2 Cyl, Trans, Engine 22.97
3 Number of Cylinder 26.38
4 Transmission Type 17.15
5 Engine Type 16.62
6 Number of carburetors 23.82
7 Number of Gears 17.39
These are the future extensions to the project which can enhance the quality of the product.