title: Comparing Linear Models with Multiple Interactions
body: <p>For an assignment, needing to determine the linear model with interaction terms for a data set and I can do this manually by creating different linear models and then performing an ANOVA test.</p>
  
  <p>What I am wondering is if there any function within R that will check all possible combinations of linear model interactions for a given main effects model? (a function similar to the same way that it handles stepwise variable selection)</p>
  
  <p>I've had a look but my knowledge of R isn't strong and I may have already browsed past the function.</p>