Solution

The product of mpg and weight can be formed using factor notation as:

c.mpg#c.weight

If you want to think of this product as an independent quantity that may be sufficient. But if you think of it as an interaction term you should include mpg and weight in the regression as well, which you can do with:

c.mpg##c.weight

Last Revised: 10/30/2009