.
60% highway driving # Calculate composite MPG gtcars$composite_mpg <- (gtcars$mpg_c * city_weight) + (gtcars$mpg_h * highway_weight) Creating Models Now that we have created composite_mpg value for gtcars, let’s create linear models to model mpg as a function of hp within each dataset. mtcars_model