Wesley E.
2/16/2016
Allows users to input the weight of their car and find out a miles per gallon estimate for their car.They can also filter on transmission type and number of cylinders so only similar cars are used for comparison calculation. Uses the mtcars dataset with 32 cars for Motor Trend magazine 1972 from R.
data(mtcars)
wt<-3
fit<-lm(mpg~wt, data=mtcars)
round(predict(fit,newdata=wt),0)
1
21
The User Inputs the restrictions on the data set to ensure similar cars are used.
a. Weight Range of similar Cars
b. Number of Cylinders of similar Cars
c. Whether the car is automatic or manual