Two-way ANOVA

  • Two categorical variables with two or more levels 
  • Compare the levels within each categorical variable and not levels between each categorical variable
SCENARIO
Consider the following sample Dataset showing sales figures of different stores using combination of coupon and promotion:

NULL Hypothesis H0: 
  • For Coupon: Level1 Mean = Level2 Mean and 
  • For Promotion: Level1 Mean = Level2 Mean = Level3 Mean
  • NULL hypothesis is that there is no interaction effect

SOLUTION
Open R Studio and enter the following code selecting dataset stored in .csv file

OUTPUT

CONCLUSION
P-value > 0.05, so we accept the NULL hypothesis that there is no sales influencing interaction between Promotion and Coupon

REFERENCES

Comments