Used Cars Project by Brian Utz, Logan Hovie, Nicholas Brooks, Paul Yeo

Looking just at price versus mileage, the price of car model Audi A4 falls by 0.22 cents per mile driven.

mod = lm(Price ~ Miles, data = mydat)
pricexmileage = makeFun(mod)

Looking just at price versus model year, the price of car model Audi A4 increases per year starting from 0 year by 2585 dollars.

mod1 = lm(Price ~ Year, data = mydat)
pricexage = makeFun(mod1)

Considering both model year and mileage, the price of car model Audi A4 falls by -7.8x10-2 per mile and increases by 1.8x103 per year from 0th year.

mod2 = lm(Price ~ Year + Miles, data = mydat)
pricexagexmiles = makeFun(mod2)

Looking at price versus location, the price differs from our four states CA, FL, NY, and WI. The coefficients show how the prices of used cars in each of the states differ from CA.

mod3 = lm(Price ~ Location, data = mydat)
pricexlocation = makeFun(mod3)