r interactions between multiple variables code example Example: r lm write interactions lm(Sales~Price*CompPrice,data=Carseats)