{"id":1102,"date":"2016-06-26T12:09:26","date_gmt":"2016-06-26T16:09:26","guid":{"rendered":"https:\/\/sites.berry.edu\/vbissonnette\/?page_id=1102"},"modified":"2016-06-27T07:52:49","modified_gmt":"2016-06-27T11:52:49","slug":"independent-samples","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/independent-samples\/","title":{"rendered":"Independent Samples"},"content":{"rendered":"<p>In a number of research designs you will be working with independent \/ unrelated samples of data. \u00a0A good example of this is a completely-randomized experimental design. \u00a0Let&#8217;s suppose that you have 12 participants in your experiment, and you have randomly assigned 6 to Treatment Group #1 and 6 to Treatment Group #2. \u00a0Each treatment group participates under a different treatment condition, and you collect some relevant dependent variable from each participant. \u00a0Let&#8217;s say that these are your data:<\/p>\n<pre style=\"padding-left: 30px\">Group #1 Scores:  1, \u00a02, \u00a03, \u00a0 4, \u00a05, \u00a0 6\r\nGroup #2 Scores:  7, \u00a08, \u00a09, \u00a010, 11, \u00a012<\/pre>\n<p>You will be submitting these data to a test of mean difference between two independent groups such as a T test, or a Mann-Whitney U test. \u00a0The question is, how should you enter these data into the data manager to conduct this sort of analysis?<\/p>\n<h4>Indicator Variable Approach<\/h4>\n<p>In most professional packages like SPSS, you have to use a grouping or indicator variable &#8212; a variable that will tell us which score in our data is from which group.\u00a0 We will call this the &#8220;Indicator Variable Approach&#8221; to managing our data from independent samples.\u00a0 In <em>Stats Homework<\/em>, we would enter data like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1111\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups1.png\" alt=\"indgroups1\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups1.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups1-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups1-260x197.png 260w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>Make sure to rename your variables!\u00a0 The guiding philosophy here is that\u00a0all the data\u00a0from one observation or participant is entered into one line &#8212; one line per observation.\u00a0 In SPSS, you have to use a numeric indicator variable &#8212; e.g., &#8220;1&#8221; and &#8220;2.&#8221;\u00a0 In <em>Stats Homework<\/em>, you can use a numeric or non-numeric indicator variable &#8212; as long as this variable has two and only two values.\u00a0 So you can use much more descriptive values &#8212; &#8220;Delayed&#8221; and &#8220;Immediate.&#8221;<\/p>\n<p>If you request a T test for independent samples in <em>Stats Homework<\/em>, you will\u00a0work with a user dialog that looks like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1112\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups2.png\" alt=\"indgroups2\" width=\"526\" height=\"370\" \/><\/a><\/p>\n<p>You will move the grouping or indicator variable to the blank labeled, &#8220;Grouping Variable,&#8221; and move the variable with your scores to the blank labeled, &#8220;Test Variable.&#8221;\u00a0 The values you use for your indicator variable will be used in the output for your analysis.\u00a0 So it&#8217;s often best to use descriptive non-numeric values for this variable.<\/p>\n<h4>Separate Variables Approach<\/h4>\n<p>In <em>Stats Homework<\/em>, it is also acceptable to enter the data from two independent samples as two separate variables:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1113\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups3.png\" alt=\"indgroups3\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups3.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups3-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups3-260x197.png 260w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>Here, the guiding principle is simplicity &#8212; you enter only your data from the study, and\u00a0you\u00a0do not have to create a new variable.\u00a0 In addition, the data layout is visually simple &#8212; you can easily see which scores are in which group.<\/p>\n<p>When you request the T test for independent samples, you will see the same dialog as before:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1114\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/indgroups4.png\" alt=\"indgroups4\" width=\"526\" height=\"370\" \/><\/a><\/p>\n<p>However, this time you will not use an indicator\/grouping variable.\u00a0 You simply move both of your variables to the &#8220;Test Variables&#8221; box.\u00a0 The names of your variables will be used in the output, so make sure you use descriptive variable names.<\/p>\n<p>You will have the choice of using either of these approaches to data management when conducting any test of independent samples.\u00a0 These include the T test, the one-factor ANOVA, the two-factor ANOVA, and the non-parametric and permutation tests that apply to the same designs.<\/p>\n<p>So, which approach should you use?\u00a0 If you wish to be prepared for the transition to using professional statistical software systems, you should definitely use the indicator variable approach.\u00a0 If you are working with simple data sets and analyses, and you want to &#8220;keep it simple,&#8221; feel free to use the separate variables approach.<\/p>\n<hr \/>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/\">Return to Main Menu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a number of research designs you will be working with independent \/ unrelated samples of data. \u00a0A good example of this is a completely-randomized experimental design. \u00a0Let&#8217;s suppose that [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"parent":282,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"class_list":["post-1102","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/1102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/comments?post=1102"}],"version-history":[{"count":8,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/1102\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/1102\/revisions\/1118"}],"up":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/282"}],"wp:attachment":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/media?parent=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}