{"id":595,"date":"2021-08-14T13:08:01","date_gmt":"2021-08-14T17:08:01","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/statspsych\/?post_type=chapter&#038;p=595"},"modified":"2022-06-04T03:29:52","modified_gmt":"2022-06-04T07:29:52","slug":"chapter-9","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/statspsych\/chapter\/chapter-9\/","title":{"raw":"9. Factorial ANOVA and Interaction Effects","rendered":"9. Factorial ANOVA and Interaction Effects"},"content":{"raw":"<h1>9a. Factorial Analysis<\/h1>\r\n<img class=\"size-medium wp-image-620 alignright\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-296x300.jpg\" alt=\"\" width=\"296\" height=\"300\" \/>\r\n\r\nIn factorial analysis, just like the fractals we see in nature, we can add multiple branchings to every experimental group, thus exploring combinations of factors and their contribution to the meaningful patterns we see in the data.\r\n\r\nIn this chapter we will tackle two-way Analysis of Variance and explore conceptually how factorial analysis works. To understand when you need two-way ANOVA and how to set up the analyses, you need to understand the matching research design terminology. We will also need to define and interpret <strong>[pb_glossary id=\"635\"]main effects[\/pb_glossary]<\/strong> and <strong>[pb_glossary id=\"636\"]interaction[\/pb_glossary]<\/strong> effects, both of which can be analyzed in a factorial research design. Later we will approach the detection and interpretation of <strong>interaction<\/strong> effects, specifically, which will really help you see the extraordinary complexity of information factorial analyses can offer.\r\n\r\n<img class=\"alignleft wp-image-621\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-300x283.jpg\" alt=\"\" width=\"191\" height=\"180\" \/>Factorial analyses such as a two-way ANOVA are required when we analyze data from a more complex experimental design than we have seen up until now. Specifically, when an experiment (or quasi-experiment) includes two or more independent variables (or <strong>[pb_glossary id=\"624\"]participant variables[\/pb_glossary]<\/strong>), we need factorial analysis. <img class=\" wp-image-611 alignright\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-273x300.jpg\" alt=\"\" width=\"240\" height=\"264\" \/>Examples of designs requiring two-way ANOVA (in which there are two factors) might include the following: a drug trial with three doses as well as the sex of the participant, or a memory test using four different colours of stimuli and also three different lengths of word lists.\r\n\r\nAs we saw in the chapter on Analysis of Variance, the total variability among scores in a dataset can be separated out, or partitioned, into two buckets. The first bucket, often called between-groups variance or treatment effect, refers to the systematic differences caused by treatments or associated with known characteristics. <img class=\"alignleft wp-image-469\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-281x300.png\" alt=\"\" width=\"246\" height=\"263\" \/>These are the differences among scores we are hoping to see \u2014 the explained differences \u2014 and thus I casually refer to this as the \u201cgood\u201d bucket of variance and colour code it in green. The other bucket, often called within-groups variance or error, refers to the random, unsystematic differences that cannot be explained by the research design. These are the unexplained individual differences that represent the noise in the data, obscuring the signal or pattern we are looking for, and thus I casually refer to it as the \u201cbad\u201d bucket of variance and colour code it in red.\r\n\r\nWe can revisit our visual example from before, in which the goal is to separate colour swatches according to some factor, such that the colours within each grouping (or level) is more uniform. If we first sort the colours according to the factor of hue, let\u2019s say into green or blue hues, then we explain some of the overall variability. But if we add a second factor, brightness, then we can explain even more of the differences among the colour swatches, making each grouping a little more uniform.\r\n\r\n<img class=\"aligncenter wp-image-612 \" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-1024x660.jpg\" alt=\"\" width=\"565\" height=\"365\" \/>\r\n\r\nClearly there is still some work to be done, and if in factor A we could have included a third level of \u201cred\u201d, the uniformity would have been much improved. And with factorial analysis, there is technically no limit to the number of factors or the number of levels we can employ to explain away the variability in the data. The more variance we can explain, through multiple factors and\/or multiple levels, the better! This is what we will be able to do with two-way ANOVA and factorial designs.\r\n\r\nYou will recall the jargon of ANOVA, including factors and levels. To grasp factorial research designs, it becomes even more important to develop comfort with these concepts, so that you can identify and describe the design and thus the requisite analysis setup. Let us suppose that we have a research study that measures the effect of a placebo, a low dose and a high dose of the drug, and also takes into account whether the participants were male or female. The first factor could be succinctly identified as \u201cdrug dose\u201d, and the second factor as \u201csex\u201d. In another example, perhaps we show participants words in black, red, blue or green, and we also take into account whether the word list presented is long, medium, or short. What would you call each of those two factors?\r\n\r\nWhat if, in a drug study, you notice that men seem to react differently than women? If you have that information (male\/female), you can use it in your ANOVA and see if you can put more variance in your \u201cgood\u201d bucket.\r\n\r\n<img class=\"alignright wp-image-613 \" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-1024x510.jpg\" alt=\"\" width=\"380\" height=\"189\" \/>\r\n\r\nIn the design illustrated here, we see that it is a 3 x 2 ANOVA. There are three levels in the first factor (drug dose), and there are two levels in the second factor (sex). This notation, that identifies the number of levels in each factor with a multiplier between, helps us see clearly how many samples are needed to realize the research design. In this example, we would need six samples in total, each of which would need to have a good enough sample size to allow for the central limit theorem to justify the normality assumption (N=30+). That is a lot of participants! However, we could learn much more by including both factors, if indeed the sex of the participant is associated with a different response to the drug.\r\n\r\n<img class=\"alignleft wp-image-614 \" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-1024x423.jpg\" alt=\"\" width=\"419\" height=\"173\" \/>We can see an example of a 4x3 two-way ANOVA here, with our example of word colour and length of list. Altogether, this design would require 12 samples.\r\n\r\nAnd just for the sake of showing you the potential of factorial analyses, you could also impose a third factor on the design: the age of the participants. In this case, you have a 4x3x2 design, requiring 12 samples. At 30 participants each, that would be 30x12=360 people! You can appreciate how each factor exponentially increases the practical demands (costs) of the research study. For this reason, a cost-benefit analysis must be carefully applied in factorial research design, such that the minimum complexity is used to answer the key research questions sufficiently.\r\n\r\nIn a two-way ANOVA, just as in a one-way ANOVA, we calculate various flavours of Sums of Squares (SS).<img class=\"alignleft wp-image-616 \" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-1024x712.jpg\" alt=\"\" width=\"435\" height=\"302\" \/> The SS total is broken down into SS between and SS within. However, with a two-way ANOVA, the SS between must be further broken down, because there are now two different factors that can have a <strong>main effect<\/strong> (i.e., can explain some of the total variance). Also, with more than one factor, there can be an <strong>interaction<\/strong> between the two that itself uniquely accounts for some of the variance. So now, we can SS row (the first factor), SS column (the second factor) and SS <strong>interaction<\/strong>. For each SS, you can also see the matching degrees of freedom.\r\n\r\nHere is the full ANOVA table expanded to accommodate the three subtypes of between-groups variability.\r\n\r\n<img class=\"aligncenter wp-image-617 \" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-1024x669.jpg\" alt=\"\" width=\"638\" height=\"417\" \/>\r\n\r\nNote that all of the Sums of Squares and degrees of freedom still should add up to the total. As you can see, there will now be three F-test results from this one omnibus analysis, one for each of the between-groups terms. Each can be compared to the appropriate degrees of freedom to determine the statistical significance of the degree to which that factor (or interaction) accounts for variance in the dependent variable that was measured in the study.\r\n\r\nTo help you interpret the formulas as they reference row means, column means, and cell means, I have added a diagram here to help you see how to locate these numbers in a 2x2 two-way ANOVA scenario.\r\n\r\n<img class=\"aligncenter wp-image-618\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-1024x672.jpg\" alt=\"\" width=\"649\" height=\"426\" \/>\r\n\r\nThe row and column means, the averages of cell means going across or down this matrix, are often referred to as marginal means (because they are noted at the margins of the data matrix).\r\n\r\nWhen it comes to hypothesis testing, a two-way ANOVA can best be thought of as three hypothesis tests in one. For each factor, and also for the <strong>interaction<\/strong> of the two, you need to identify populations and hypotheses, cutoffs, calculate the SS between, degrees of freedom, variance between, and F-test results. All three will share the same error terms, the SS, degrees of freedom, and variance within groups. As you can imagine, the complexity of calculating such an analysis could be daunting, but a systematic, organized approach and the use of the ANOVA table keeps it well under control.\r\n\r\nAs with one-way ANOVA, if any factor has more than two levels, you may need to calculate pairwise contrasts for that factor to determine where exactly a significant difference among group means lies. Even with a 2x2 ANOVA, the <strong>interaction<\/strong> effect has four possible pairwise comparisons to investigate, and that would require a planned contrast or post-hoc test. The same rules apply to such analyses as before: they may only be conducted if there is a significant overall ANOVA result, and the experimentwise risk of Type I error must be controlled.\r\n\r\nWe can continue building our statistical decision tree to help us decide which test to use when we examine a research question\/design. If we have two independent variables (factors) in the experimental design, then we need to use a two-way ANOVA to analyze the data.\r\n\r\n<img class=\"aligncenter wp-image-619\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-1024x368.jpg\" alt=\"\" width=\"711\" height=\"256\" \/>\r\n\r\nBefore we move on to detecting and interpreting <strong>main effects<\/strong> and <strong>interactions<\/strong>, I would like to bring in two cautions about factorial designs. Many researchers new to the trade are keen to include as many factors as possible in their research design, and to include lots of levels just in case it is informative. This is an understandable impulse, given how much effort and expense can go into designing and conducting a research study. We want to gather as much information as possible from that effort! However, as we saw before, the more factors we add in, the more participants we need to ensure a decent sample size in each cell of our data matrix. There is another important element to consider, as well. For each factor we add in, we add <strong>interaction<\/strong> terms. If we were ambitious enough to include three factors in our research design, we would have the potential for <strong>interaction<\/strong> effects among each pair of the factors, but we would also potentially see a three-way <strong>interaction<\/strong> effect.\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Interactions for a three-way ANOVA<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nIn a three-way ANOVA involving factors A, B, and C, one must analyze the following interactions:\r\n<ul>\r\n \t<li>A x B<\/li>\r\n \t<li>B x C<\/li>\r\n \t<li>A x C<\/li>\r\n \t<li>A x B x C<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>\r\nThe interpretation of all these <strong>interactions<\/strong> becomes very challenging. For this reason, solid advice to researchers is to limit ourselves to two factors for any given analysis, unless there is a very strong hypothesis regarding a three-way <strong>interaction<\/strong>.\r\n<h1>9b. Interaction Effects<\/h1>\r\nIn this part of the chapter, we will dig into <strong>interaction<\/strong> effects and how to detect and interpret them alongside <strong>main effects<\/strong> in factorial analyses. We will see that <strong>main effects<\/strong> can be detected using group means tables, and <strong>interactions<\/strong> can be detected using the tools of bar graphs and <strong>interaction<\/strong> plots.\r\n\r\nWe will also look at how to interpret three major scenarios: when we have significant <strong>main effects<\/strong> but no significant <strong>interaction<\/strong>; when we have a significant <strong>interaction<\/strong>, but no <strong>main effects<\/strong> and when we have both <strong>interactions<\/strong> and <strong>main effects<\/strong> that turn out significant.\r\n\r\nA <strong>main effect<\/strong> means that one of the factors explains a significant amount of variability in the data when taken on its own, independent of the other factor. You can tell (roughly) whether a <strong>main effect<\/strong> is likely to exist by looking at the data tables. Specifically, you want to look at the marginal means, or what we called the row and column means in the context of a two-way ANOVA above.\r\n\r\nLet us look at the first example.\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\" border=\"0\"><caption>Data Example 1<\/caption>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<td style=\"width: 25%;text-align: center\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">10<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nGoing across the data table, you can see the mean pain score measured in people who received a low dose of a drug, and those who received a high dose. The marginal means are 15 vs. 15. This indicates there is clearly no difference between the two, so there is no <strong>main effect<\/strong> of drug dose. Now look top to bottom to find the comparison between male and female participants on average. 15 vs. 15 again, so no <strong>main effect<\/strong> of education level.\r\n\r\nNow look at the second example.\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\" border=\"0\"><caption>Data Example 2<\/caption>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<td style=\"width: 25%;text-align: center\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">40<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">30<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">30<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center\">35<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nGoing across, we can see a difference in the row means. People who receive the low dose\u00a0 have less pain that those who receive the high dose: this could be a significant <strong>main effect<\/strong>. Going down, we can see a different in the column means as well. Males report more pain than females. Another likely <strong>main effect<\/strong>. So in this example there is an apparent <strong>main effect<\/strong> of each factor, independent of the other factor.\r\n\r\nNow, detecting <strong>interaction<\/strong> effects in a data table like this is trickier. But if you can see a clear X-pattern in the group means table (the four cell means), such that similar numbers connect in an \u201cX\u201d, then that is a sign that there is probably an interaction. If not, there may not be.\r\n\r\nIn the first example, it is clear that there is an X pattern if you connect similar numbers (20 with 20 and 10 with 10). Probably an interaction.\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\" border=\"0\"><caption>Data Example 1<\/caption>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<td style=\"width: 25%;text-align: center\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">10<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nIn the second example, it is not so clear. Ask yourself: if you take one row at a time, is there a different pattern for each or a similar one?\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%;height: 60px\" border=\"0\"><caption>Data Example 2<\/caption>\r\n<tbody>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">40<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">20<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">30<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\">High dose of drug<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center;height: 15px\">30<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center;height: 15px\">10<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">20<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">35<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">15<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nPeople with a low dose have lower pain scores if they are female. A similar pattern exists for the high dose as well. This similarity in pattern suggests there is no interaction. You can do the same test with the columns and reach the same conclusion.\r\n\r\n<img class=\"alignright wp-image-646\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12.png\" alt=\"\" width=\"400\" height=\"240\" \/>\r\n\r\nIt is far easier to tell at a glance whether an <strong>interaction<\/strong> exists if you graph the data. In a bar graph, look for a U- or inverted-U-shaped pattern across side-by-side bar graphs as an indication of an <strong>interaction<\/strong>.\r\n\r\n<img class=\"alignright wp-image-647\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13.png\" alt=\"\" width=\"400\" height=\"240\" \/>\r\n\r\nIn the top graph, there is clearly an <strong>interaction<\/strong>: look at the U shape the graphs form.\r\n\r\nIn the bottom graph, there is no such U shape. When you look at each set of bars in turn, the pattern displayed is similar \u2013 just a little higher overall for the older people. Clearly, there is no hint of an <strong>interaction<\/strong>.\r\n\r\n<img class=\"wp-image-651 alignleft\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png\" alt=\"\" width=\"400\" height=\"273\" \/>\r\n\r\n<strong>Interaction<\/strong> plots make it even easier to see if an <strong>interaction<\/strong> exists in a dataset. If you were to connect the tops of like-coloured bars of the graphs on the previous bar graphs, you would get line plots like those shown here.\r\n\r\n<img class=\"alignleft wp-image-652\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15.png\" alt=\"\" width=\"400\" height=\"271\" \/>\r\n\r\nIf the two resulting lines are non-parallel, then there is an <strong>interaction<\/strong>. On the other hand, if the lines are parallel or close to parallel, there is no <strong>interaction<\/strong>.\r\n\r\nNow you have seen the same example datasets displayed in three different ways, each making it easy to see particular aspects of the patterns made by the data.\r\n\r\nMore challenging than the detection of <strong>main effects<\/strong> and <strong>interactions<\/strong> is determining their meaning. Learning to interpret <strong>main effects<\/strong> and <strong>interactions<\/strong> is the most challenging aspect of factorial analyses, at least for most of us.\u00a0 Now we will take a look systematically at the three basic possible scenarios.\r\n\r\n&nbsp;\r\n\r\nThe first possible scenario is that <strong>main effects<\/strong> exist with no <strong>interaction<\/strong>. This can be interpreted as the following: each factor independently influenced the dependent variable (or at least accounted for a sizeable share of variance).\r\n<table style=\"border-collapse: collapse;width: 100%;height: 60px\" border=\"0\"><caption>Data Example 2<\/caption>\r\n<tbody>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Low dose of drug<\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>30<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\">High dose of drug<\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>20<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Column means<\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<img class=\"aligncenter wp-image-659\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.16-1.png\" alt=\"\" width=\"237\" height=\"242\" \/>\r\n\r\nIn other words, if you were to look at one factor at a time, ignoring the other factor entirely, you would see that there was a difference in the dependent variable you were measuring, between the levels of that factor.\r\n<table style=\"border-collapse: collapse;width: 100%;height: 60px\" border=\"0\"><caption>Data Example 2<\/caption>\r\n<tbody>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\">Row means<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>35<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>15<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<img class=\"aligncenter wp-image-661\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.17-1.png\" alt=\"\" width=\"237\" height=\"242\" \/>\r\n\r\nThe second possible scenario is that an <strong>interaction<\/strong> exists without <strong>main effects<\/strong>. We can interpret this as follows: each factor did not, in and of itself, influence the dependent variable.\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\" border=\"0\"><caption>Data Example 1<\/caption>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<td style=\"width: 25%;text-align: center\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">10<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\r\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nHere you can see that neither dose nor sex marginal means differ \u2013 no <strong>main effects<\/strong>. But the non-parallel lines in the graph of cell means indicate an <strong>interaction<\/strong>.\r\n\r\n<img class=\"aligncenter wp-image-651\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png\" alt=\"\" width=\"400\" height=\"273\" \/>\r\n\r\nThe best way to interpret an <strong>interaction<\/strong> is to start describing the patterns for each level of one of the factors. First we will examine the low dose group. They have lower pain scores only if they are female. Now look at the high dose group: they have a lower pain scores only if they are male \u2013 the opposite pattern. This means that the effect of the drug on pain depends on (or interacts with) sex.\r\n\r\nThe third possible basic scenario in a dataset is that <strong>main effects<\/strong> <em>and<\/em> <strong>interactions<\/strong> exist. This means each factor independently accounted for variability in the dependent variable in its own right. But also, they interacted synergistically to explain variance in the dependent variable. Together, the two factors do something else beyond their separate, independent <strong>main effects<\/strong>.\r\n\r\nIn this example, at both low dose and high dose of the drug, pain levels are higher for males.\r\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\" border=\"0\"><caption>Data Example 3<\/caption>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<td style=\"width: 25%;text-align: center\">Male<\/td>\r\n<td style=\"width: 25%;text-align: center\">Female<\/td>\r\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">40<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">30<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\r\n<td style=\"width: 25%;text-align: center\">20<\/td>\r\n<td style=\"width: 25%;text-align: center\">15<\/td>\r\n<td style=\"width: 25%;text-align: center\">17.5<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\r\n<td style=\"width: 25%;text-align: center\">30<\/td>\r\n<td style=\"width: 25%;text-align: center\">17.5<\/td>\r\n<td style=\"width: 25%;text-align: center\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nFor both sexes, the higher dose is more effective at reducing pain than the lower dose. But there is also an <strong>interaction<\/strong>, in that the difference between drug dose is much more accentuated in males. Just look at the difference in the slope of the lines in the <strong>interaction<\/strong> plot.\r\n\r\n<img class=\"aligncenter wp-image-666\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18.png\" alt=\"\" width=\"400\" height=\"313\" \/>\r\n\r\nThe lines are certainly non-parallel. So drug dose and sex matter, each in their own right, but also in their particular combination.\r\n\r\nYou can probably imagine how such a pattern could arise. Perhaps males are more sensitive to pain, and thus require a high dose to achieve relief. Or perhaps the higher body mass in males means a higher dose of drug is required to be effective. For females, both doses are similar in their efficacy.\r\n<h1>Chapter Summary<\/h1>\r\nIn this chapter we introduced the concept of factorial analysis and took a look at how to conduct a two-way ANOVA. We further examined ways to detect and interpret <strong>main effects<\/strong> and <strong>interactions<\/strong>.\r\n\r\nKey terms:\r\n<table style=\"border-collapse: collapse;width: 100%\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 33.3333%\"><strong>main effects<\/strong><\/td>\r\n<td style=\"width: 33.3333%\"><strong>interactions<\/strong><\/td>\r\n<td style=\"width: 33.3333%\"><strong>participant variables<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>","rendered":"<h1>9a. Factorial Analysis<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-620 alignright\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-296x300.jpg\" alt=\"\" width=\"296\" height=\"300\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-296x300.jpg 296w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-65x66.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-225x228.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1-350x355.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.1.jpg 653w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><\/p>\n<p>In factorial analysis, just like the fractals we see in nature, we can add multiple branchings to every experimental group, thus exploring combinations of factors and their contribution to the meaningful patterns we see in the data.<\/p>\n<p>In this chapter we will tackle two-way Analysis of Variance and explore conceptually how factorial analysis works. To understand when you need two-way ANOVA and how to set up the analyses, you need to understand the matching research design terminology. We will also need to define and interpret <strong><a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_595_635\">main effects<\/a><\/strong> and <strong><a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_595_636\">interaction<\/a><\/strong> effects, both of which can be analyzed in a factorial research design. Later we will approach the detection and interpretation of <strong>interaction<\/strong> effects, specifically, which will really help you see the extraordinary complexity of information factorial analyses can offer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-621\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-300x283.jpg\" alt=\"\" width=\"191\" height=\"180\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-300x283.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-65x61.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-225x212.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2-350x330.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.2.jpg 675w\" sizes=\"auto, (max-width: 191px) 100vw, 191px\" \/>Factorial analyses such as a two-way ANOVA are required when we analyze data from a more complex experimental design than we have seen up until now. Specifically, when an experiment (or quasi-experiment) includes two or more independent variables (or <strong><a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_595_624\">participant variables<\/a><\/strong>), we need factorial analysis. <img loading=\"lazy\" decoding=\"async\" class=\"wp-image-611 alignright\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-273x300.jpg\" alt=\"\" width=\"240\" height=\"264\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-273x300.jpg 273w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-931x1024.jpg 931w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-768x845.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-65x71.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-225x247.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3-350x385.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.3.jpg 1062w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/>Examples of designs requiring two-way ANOVA (in which there are two factors) might include the following: a drug trial with three doses as well as the sex of the participant, or a memory test using four different colours of stimuli and also three different lengths of word lists.<\/p>\n<p>As we saw in the chapter on Analysis of Variance, the total variability among scores in a dataset can be separated out, or partitioned, into two buckets. The first bucket, often called between-groups variance or treatment effect, refers to the systematic differences caused by treatments or associated with known characteristics. <img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-469\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-281x300.png\" alt=\"\" width=\"246\" height=\"263\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-281x300.png 281w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-65x69.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-225x240.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5-350x374.png 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-8.5.png 653w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/>These are the differences among scores we are hoping to see \u2014 the explained differences \u2014 and thus I casually refer to this as the \u201cgood\u201d bucket of variance and colour code it in green. The other bucket, often called within-groups variance or error, refers to the random, unsystematic differences that cannot be explained by the research design. These are the unexplained individual differences that represent the noise in the data, obscuring the signal or pattern we are looking for, and thus I casually refer to it as the \u201cbad\u201d bucket of variance and colour code it in red.<\/p>\n<p>We can revisit our visual example from before, in which the goal is to separate colour swatches according to some factor, such that the colours within each grouping (or level) is more uniform. If we first sort the colours according to the factor of hue, let\u2019s say into green or blue hues, then we explain some of the overall variability. But if we add a second factor, brightness, then we can explain even more of the differences among the colour swatches, making each grouping a little more uniform.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-612\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-1024x660.jpg\" alt=\"\" width=\"565\" height=\"365\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-1024x660.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-300x193.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-768x495.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-1536x991.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-65x42.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-225x145.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4-350x226.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.4.jpg 1960w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p>Clearly there is still some work to be done, and if in factor A we could have included a third level of \u201cred\u201d, the uniformity would have been much improved. And with factorial analysis, there is technically no limit to the number of factors or the number of levels we can employ to explain away the variability in the data. The more variance we can explain, through multiple factors and\/or multiple levels, the better! This is what we will be able to do with two-way ANOVA and factorial designs.<\/p>\n<p>You will recall the jargon of ANOVA, including factors and levels. To grasp factorial research designs, it becomes even more important to develop comfort with these concepts, so that you can identify and describe the design and thus the requisite analysis setup. Let us suppose that we have a research study that measures the effect of a placebo, a low dose and a high dose of the drug, and also takes into account whether the participants were male or female. The first factor could be succinctly identified as \u201cdrug dose\u201d, and the second factor as \u201csex\u201d. In another example, perhaps we show participants words in black, red, blue or green, and we also take into account whether the word list presented is long, medium, or short. What would you call each of those two factors?<\/p>\n<p>What if, in a drug study, you notice that men seem to react differently than women? If you have that information (male\/female), you can use it in your ANOVA and see if you can put more variance in your \u201cgood\u201d bucket.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-613\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-1024x510.jpg\" alt=\"\" width=\"380\" height=\"189\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-1024x510.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-300x149.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-768x383.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-1536x765.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-65x32.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-225x112.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5-350x174.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.5.jpg 1939w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/><\/p>\n<p>In the design illustrated here, we see that it is a 3 x 2 ANOVA. There are three levels in the first factor (drug dose), and there are two levels in the second factor (sex). This notation, that identifies the number of levels in each factor with a multiplier between, helps us see clearly how many samples are needed to realize the research design. In this example, we would need six samples in total, each of which would need to have a good enough sample size to allow for the central limit theorem to justify the normality assumption (N=30+). That is a lot of participants! However, we could learn much more by including both factors, if indeed the sex of the participant is associated with a different response to the drug.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-614\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-1024x423.jpg\" alt=\"\" width=\"419\" height=\"173\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-1024x423.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-300x124.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-768x317.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-1536x634.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-2048x846.jpg 2048w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-65x27.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-225x93.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.6-350x145.jpg 350w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/>We can see an example of a 4&#215;3 two-way ANOVA here, with our example of word colour and length of list. Altogether, this design would require 12 samples.<\/p>\n<p>And just for the sake of showing you the potential of factorial analyses, you could also impose a third factor on the design: the age of the participants. In this case, you have a 4x3x2 design, requiring 12 samples. At 30 participants each, that would be 30&#215;12=360 people! You can appreciate how each factor exponentially increases the practical demands (costs) of the research study. For this reason, a cost-benefit analysis must be carefully applied in factorial research design, such that the minimum complexity is used to answer the key research questions sufficiently.<\/p>\n<p>In a two-way ANOVA, just as in a one-way ANOVA, we calculate various flavours of Sums of Squares (SS).<img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-616\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-1024x712.jpg\" alt=\"\" width=\"435\" height=\"302\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-1024x712.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-300x209.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-768x534.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-1536x1068.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-65x45.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-225x156.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8-350x243.jpg 350w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.8.jpg 1817w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/> The SS total is broken down into SS between and SS within. However, with a two-way ANOVA, the SS between must be further broken down, because there are now two different factors that can have a <strong>main effect<\/strong> (i.e., can explain some of the total variance). Also, with more than one factor, there can be an <strong>interaction<\/strong> between the two that itself uniquely accounts for some of the variance. So now, we can SS row (the first factor), SS column (the second factor) and SS <strong>interaction<\/strong>. For each SS, you can also see the matching degrees of freedom.<\/p>\n<p>Here is the full ANOVA table expanded to accommodate the three subtypes of between-groups variability.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-617\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-1024x669.jpg\" alt=\"\" width=\"638\" height=\"417\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-1024x669.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-300x196.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-768x501.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-1536x1003.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-2048x1337.jpg 2048w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-65x42.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-225x147.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.9-350x229.jpg 350w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>Note that all of the Sums of Squares and degrees of freedom still should add up to the total. As you can see, there will now be three F-test results from this one omnibus analysis, one for each of the between-groups terms. Each can be compared to the appropriate degrees of freedom to determine the statistical significance of the degree to which that factor (or interaction) accounts for variance in the dependent variable that was measured in the study.<\/p>\n<p>To help you interpret the formulas as they reference row means, column means, and cell means, I have added a diagram here to help you see how to locate these numbers in a 2&#215;2 two-way ANOVA scenario.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-618\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-1024x672.jpg\" alt=\"\" width=\"649\" height=\"426\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-1024x672.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-300x197.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-768x504.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-1536x1008.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-2048x1343.jpg 2048w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-65x43.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-225x148.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.10-350x230.jpg 350w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/p>\n<p>The row and column means, the averages of cell means going across or down this matrix, are often referred to as marginal means (because they are noted at the margins of the data matrix).<\/p>\n<p>When it comes to hypothesis testing, a two-way ANOVA can best be thought of as three hypothesis tests in one. For each factor, and also for the <strong>interaction<\/strong> of the two, you need to identify populations and hypotheses, cutoffs, calculate the SS between, degrees of freedom, variance between, and F-test results. All three will share the same error terms, the SS, degrees of freedom, and variance within groups. As you can imagine, the complexity of calculating such an analysis could be daunting, but a systematic, organized approach and the use of the ANOVA table keeps it well under control.<\/p>\n<p>As with one-way ANOVA, if any factor has more than two levels, you may need to calculate pairwise contrasts for that factor to determine where exactly a significant difference among group means lies. Even with a 2&#215;2 ANOVA, the <strong>interaction<\/strong> effect has four possible pairwise comparisons to investigate, and that would require a planned contrast or post-hoc test. The same rules apply to such analyses as before: they may only be conducted if there is a significant overall ANOVA result, and the experimentwise risk of Type I error must be controlled.<\/p>\n<p>We can continue building our statistical decision tree to help us decide which test to use when we examine a research question\/design. If we have two independent variables (factors) in the experimental design, then we need to use a two-way ANOVA to analyze the data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-619\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-1024x368.jpg\" alt=\"\" width=\"711\" height=\"256\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-1024x368.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-300x108.jpg 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-768x276.jpg 768w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-1536x552.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-2048x736.jpg 2048w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-65x23.jpg 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-225x81.jpg 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.11-350x126.jpg 350w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Before we move on to detecting and interpreting <strong>main effects<\/strong> and <strong>interactions<\/strong>, I would like to bring in two cautions about factorial designs. Many researchers new to the trade are keen to include as many factors as possible in their research design, and to include lots of levels just in case it is informative. This is an understandable impulse, given how much effort and expense can go into designing and conducting a research study. We want to gather as much information as possible from that effort! However, as we saw before, the more factors we add in, the more participants we need to ensure a decent sample size in each cell of our data matrix. There is another important element to consider, as well. For each factor we add in, we add <strong>interaction<\/strong> terms. If we were ambitious enough to include three factors in our research design, we would have the potential for <strong>interaction<\/strong> effects among each pair of the factors, but we would also potentially see a three-way <strong>interaction<\/strong> effect.<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Interactions for a three-way ANOVA<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>In a three-way ANOVA involving factors A, B, and C, one must analyze the following interactions:<\/p>\n<ul>\n<li>A x B<\/li>\n<li>B x C<\/li>\n<li>A x C<\/li>\n<li>A x B x C<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>The interpretation of all these <strong>interactions<\/strong> becomes very challenging. For this reason, solid advice to researchers is to limit ourselves to two factors for any given analysis, unless there is a very strong hypothesis regarding a three-way <strong>interaction<\/strong>.<\/p>\n<h1>9b. Interaction Effects<\/h1>\n<p>In this part of the chapter, we will dig into <strong>interaction<\/strong> effects and how to detect and interpret them alongside <strong>main effects<\/strong> in factorial analyses. We will see that <strong>main effects<\/strong> can be detected using group means tables, and <strong>interactions<\/strong> can be detected using the tools of bar graphs and <strong>interaction<\/strong> plots.<\/p>\n<p>We will also look at how to interpret three major scenarios: when we have significant <strong>main effects<\/strong> but no significant <strong>interaction<\/strong>; when we have a significant <strong>interaction<\/strong>, but no <strong>main effects<\/strong> and when we have both <strong>interactions<\/strong> and <strong>main effects<\/strong> that turn out significant.<\/p>\n<p>A <strong>main effect<\/strong> means that one of the factors explains a significant amount of variability in the data when taken on its own, independent of the other factor. You can tell (roughly) whether a <strong>main effect<\/strong> is likely to exist by looking at the data tables. Specifically, you want to look at the marginal means, or what we called the row and column means in the context of a two-way ANOVA above.<\/p>\n<p>Let us look at the first example.<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\">\n<caption>Data Example 1<\/caption>\n<tbody>\n<tr>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<td style=\"width: 25%;text-align: center\">Male<\/td>\n<td style=\"width: 25%;text-align: center\">Female<\/td>\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">10<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Going across the data table, you can see the mean pain score measured in people who received a low dose of a drug, and those who received a high dose. The marginal means are 15 vs. 15. This indicates there is clearly no difference between the two, so there is no <strong>main effect<\/strong> of drug dose. Now look top to bottom to find the comparison between male and female participants on average. 15 vs. 15 again, so no <strong>main effect<\/strong> of education level.<\/p>\n<p>Now look at the second example.<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\">\n<caption>Data Example 2<\/caption>\n<tbody>\n<tr>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<td style=\"width: 25%;text-align: center\">Male<\/td>\n<td style=\"width: 25%;text-align: center\">Female<\/td>\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">40<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">30<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">30<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center\">35<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Going across, we can see a difference in the row means. People who receive the low dose\u00a0 have less pain that those who receive the high dose: this could be a significant <strong>main effect<\/strong>. Going down, we can see a different in the column means as well. Males report more pain than females. Another likely <strong>main effect<\/strong>. So in this example there is an apparent <strong>main effect<\/strong> of each factor, independent of the other factor.<\/p>\n<p>Now, detecting <strong>interaction<\/strong> effects in a data table like this is trickier. But if you can see a clear X-pattern in the group means table (the four cell means), such that similar numbers connect in an \u201cX\u201d, then that is a sign that there is probably an interaction. If not, there may not be.<\/p>\n<p>In the first example, it is clear that there is an X pattern if you connect similar numbers (20 with 20 and 10 with 10). Probably an interaction.<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\">\n<caption>Data Example 1<\/caption>\n<tbody>\n<tr>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<td style=\"width: 25%;text-align: center\">Male<\/td>\n<td style=\"width: 25%;text-align: center\">Female<\/td>\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">10<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In the second example, it is not so clear. Ask yourself: if you take one row at a time, is there a different pattern for each or a similar one?<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%;height: 60px\">\n<caption>Data Example 2<\/caption>\n<tbody>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">Male<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">Female<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">40<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">20<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">30<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\">High dose of drug<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center;height: 15px\">30<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center;height: 15px\">10<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">20<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">35<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">15<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>People with a low dose have lower pain scores if they are female. A similar pattern exists for the high dose as well. This similarity in pattern suggests there is no interaction. You can do the same test with the columns and reach the same conclusion.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-646\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12.png\" alt=\"\" width=\"400\" height=\"240\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12.png 481w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12-300x180.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12-65x39.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12-225x135.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.12-350x210.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>It is far easier to tell at a glance whether an <strong>interaction<\/strong> exists if you graph the data. In a bar graph, look for a U- or inverted-U-shaped pattern across side-by-side bar graphs as an indication of an <strong>interaction<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-647\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13.png\" alt=\"\" width=\"400\" height=\"240\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13.png 481w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13-300x180.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13-65x39.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13-225x135.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.13-350x210.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>In the top graph, there is clearly an <strong>interaction<\/strong>: look at the U shape the graphs form.<\/p>\n<p>In the bottom graph, there is no such U shape. When you look at each set of bars in turn, the pattern displayed is similar \u2013 just a little higher overall for the older people. Clearly, there is no hint of an <strong>interaction<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-651 alignleft\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png\" alt=\"\" width=\"400\" height=\"273\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png 427w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-300x204.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-65x44.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-225x153.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-350x239.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p><strong>Interaction<\/strong> plots make it even easier to see if an <strong>interaction<\/strong> exists in a dataset. If you were to connect the tops of like-coloured bars of the graphs on the previous bar graphs, you would get line plots like those shown here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-652\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15.png\" alt=\"\" width=\"400\" height=\"271\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15.png 427w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15-300x203.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15-65x44.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15-225x152.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.15-350x237.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>If the two resulting lines are non-parallel, then there is an <strong>interaction<\/strong>. On the other hand, if the lines are parallel or close to parallel, there is no <strong>interaction<\/strong>.<\/p>\n<p>Now you have seen the same example datasets displayed in three different ways, each making it easy to see particular aspects of the patterns made by the data.<\/p>\n<p>More challenging than the detection of <strong>main effects<\/strong> and <strong>interactions<\/strong> is determining their meaning. Learning to interpret <strong>main effects<\/strong> and <strong>interactions<\/strong> is the most challenging aspect of factorial analyses, at least for most of us.\u00a0 Now we will take a look systematically at the three basic possible scenarios.<\/p>\n<p>&nbsp;<\/p>\n<p>The first possible scenario is that <strong>main effects<\/strong> exist with no <strong>interaction<\/strong>. This can be interpreted as the following: each factor independently influenced the dependent variable (or at least accounted for a sizeable share of variance).<\/p>\n<table style=\"border-collapse: collapse;width: 100%;height: 60px\">\n<caption>Data Example 2<\/caption>\n<tbody>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\">Low dose of drug<\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>30<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\">High dose of drug<\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>20<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\">Column means<\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-659\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.16-1.png\" alt=\"\" width=\"237\" height=\"242\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.16-1.png 283w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.16-1-65x66.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.16-1-225x230.png 225w\" sizes=\"auto, (max-width: 237px) 100vw, 237px\" \/><\/p>\n<p>In other words, if you were to look at one factor at a time, ignoring the other factor entirely, you would see that there was a difference in the dependent variable you were measuring, between the levels of that factor.<\/p>\n<table style=\"border-collapse: collapse;width: 100%;height: 60px\">\n<caption>Data Example 2<\/caption>\n<tbody>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">Male<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">Female<\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\">Row means<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<td class=\"shaded\" style=\"width: 25%;text-align: center;height: 15px\"><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>35<\/strong><\/td>\n<td style=\"width: 25%;text-align: center;height: 15px\"><strong>15<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-661\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.17-1.png\" alt=\"\" width=\"237\" height=\"242\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.17-1.png 283w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.17-1-65x66.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.17-1-225x230.png 225w\" sizes=\"auto, (max-width: 237px) 100vw, 237px\" \/><\/p>\n<p>The second possible scenario is that an <strong>interaction<\/strong> exists without <strong>main effects<\/strong>. We can interpret this as follows: each factor did not, in and of itself, influence the dependent variable.<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\">\n<caption>Data Example 1<\/caption>\n<tbody>\n<tr>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<td style=\"width: 25%;text-align: center\">Male<\/td>\n<td style=\"width: 25%;text-align: center\">Female<\/td>\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">10<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">10<\/td>\n<td class=\"border\" style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here you can see that neither dose nor sex marginal means differ \u2013 no <strong>main effects<\/strong>. But the non-parallel lines in the graph of cell means indicate an <strong>interaction<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-651\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png\" alt=\"\" width=\"400\" height=\"273\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14.png 427w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-300x204.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-65x44.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-225x153.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.14-350x239.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>The best way to interpret an <strong>interaction<\/strong> is to start describing the patterns for each level of one of the factors. First we will examine the low dose group. They have lower pain scores only if they are female. Now look at the high dose group: they have a lower pain scores only if they are male \u2013 the opposite pattern. This means that the effect of the drug on pain depends on (or interacts with) sex.<\/p>\n<p>The third possible basic scenario in a dataset is that <strong>main effects<\/strong> <em>and<\/em> <strong>interactions<\/strong> exist. This means each factor independently accounted for variability in the dependent variable in its own right. But also, they interacted synergistically to explain variance in the dependent variable. Together, the two factors do something else beyond their separate, independent <strong>main effects<\/strong>.<\/p>\n<p>In this example, at both low dose and high dose of the drug, pain levels are higher for males.<\/p>\n<table class=\"shaded\" style=\"border-collapse: collapse;width: 100%\">\n<caption>Data Example 3<\/caption>\n<tbody>\n<tr>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<td style=\"width: 25%;text-align: center\">Male<\/td>\n<td style=\"width: 25%;text-align: center\">Female<\/td>\n<td style=\"width: 25%;text-align: center\"><strong>Row means<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">Low dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">40<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">30<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\">High dose of drug<\/td>\n<td style=\"width: 25%;text-align: center\">20<\/td>\n<td style=\"width: 25%;text-align: center\">15<\/td>\n<td style=\"width: 25%;text-align: center\">17.5<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;text-align: center\"><strong>Column means<\/strong><\/td>\n<td style=\"width: 25%;text-align: center\">30<\/td>\n<td style=\"width: 25%;text-align: center\">17.5<\/td>\n<td style=\"width: 25%;text-align: center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For both sexes, the higher dose is more effective at reducing pain than the lower dose. But there is also an <strong>interaction<\/strong>, in that the difference between drug dose is much more accentuated in males. Just look at the difference in the slope of the lines in the <strong>interaction<\/strong> plot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-666\" src=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18.png\" alt=\"\" width=\"400\" height=\"313\" srcset=\"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18.png 416w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18-300x234.png 300w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18-65x51.png 65w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18-225x176.png 225w, https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-content\/uploads\/sites\/1469\/2021\/08\/Fig-9.18-350x273.png 350w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>The lines are certainly non-parallel. So drug dose and sex matter, each in their own right, but also in their particular combination.<\/p>\n<p>You can probably imagine how such a pattern could arise. Perhaps males are more sensitive to pain, and thus require a high dose to achieve relief. Or perhaps the higher body mass in males means a higher dose of drug is required to be effective. For females, both doses are similar in their efficacy.<\/p>\n<h1>Chapter Summary<\/h1>\n<p>In this chapter we introduced the concept of factorial analysis and took a look at how to conduct a two-way ANOVA. We further examined ways to detect and interpret <strong>main effects<\/strong> and <strong>interactions<\/strong>.<\/p>\n<p>Key terms:<\/p>\n<table style=\"border-collapse: collapse;width: 100%\">\n<tbody>\n<tr>\n<td style=\"width: 33.3333%\"><strong>main effects<\/strong><\/td>\n<td style=\"width: 33.3333%\"><strong>interactions<\/strong><\/td>\n<td style=\"width: 33.3333%\"><strong>participant variables<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_595_635\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_595_635\"><div tabindex=\"-1\"><p>the degree to which one of the factors explains variability in the data when taken on its own, independent of the other factor<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><template id=\"term_595_636\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_595_636\"><div tabindex=\"-1\"><p>the degree to which the contribution of one factor to explaining variability in the data depends on the other factor; the synergy among factors in explaining variance<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><template id=\"term_595_624\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_595_624\"><div tabindex=\"-1\"><p>variables used like independent variables in (quasi-)experimental research designs, but which cannot be manipulated or assigned randomly to participants, and as such must not generate cause-effect conclusions<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":1394,"menu_order":9,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-595","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapters\/595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/wp\/v2\/users\/1394"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapters\/595\/revisions"}],"predecessor-version":[{"id":997,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapters\/595\/revisions\/997"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapters\/595\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/wp\/v2\/media?parent=595"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/pressbooks\/v2\/chapter-type?post=595"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/wp\/v2\/contributor?post=595"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/statspsych\/wp-json\/wp\/v2\/license?post=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}