# A fuel consumption study of Stata's auto dataset We conduct a study of the fuel consumption of cars in Stata's auto dataset. ~~~~ <> sysuse auto, clear <> ~~~~ We generate a variable, **fuel**, that measures the fuel consumption rate in the unit of Gallons per 100 Miles. ~~~~ <> generate fuel = 100/mpg label variable fuel "Fuel consumption (Gallons per 100 Miles)" <> ~~~~ ## Explore relationship between fuel consumption and vehicle weight ~~~~ <> scatter fuel weight, mcolor(blue%50) <> ~~~~ <> ~~~~ <> regress fuel weight <> ~~~~ <> matrix eb = e(b) <> The regression shows that for every unit increase in weight, a <> unit increase in fuel consumption is predicted.