Docsity

Comparing Groups in SPSS - 7 Problems - Research Methods | PSYC 512, Assignments of Psychology

Toggle sidebar
bg1
Homework Set 3: Comparing Groups in SPSS
1) Open the data in SPSS. This assignment uses the same 4 group data set as
HW2 (descriptive statistics), so either use the SPSS data file you created for
HW2 or follow the homework 2 instructions for importing the data from
Excel. The data should look something like this:
2) Unfortunately, SPSS does not like the string labels assigned to the
Treatment_Group variable. We will need to replace these with numbers and
then assign these string labels to each number. First, in the Treatment_Group
column, substitute “1” for “control”, “2” for “sleep learning”, “3” for
“tutoring”, and “4” for “motivational tape”.
pf3
pf4
pf5

Partial preview of the text

Download Comparing Groups in SPSS - 7 Problems - Research Methods | PSYC 512 and more Assignments Psychology in PDF only on Docsity!

Homework Set 3: Comparing Groups in SPSS

  1. Open the data in SPSS. This assignment uses the same 4 group data set as HW2 (descriptive statistics), so either use the SPSS data file you created for HW2 or follow the homework 2 instructions for importing the data from Excel. The data should look something like this:
  2. Unfortunately, SPSS does not like the string labels assigned to the Treatment_Group variable. We will need to replace these with numbers and then assign these string labels to each number. First, in the Treatment_Group column, substitute “1” for “control”, “2” for “sleep learning”, “3” for “tutoring”, and “4” for “motivational tape”.

Next, click Variable View on the lower left (see red circled area above) then change the variable Type for the “Treatment_Group” variable from string to numeric. In the Values column, select the cell in the “Treatment_Group” row and click on the gray box with the … in it. We will now associate the labels we overwrote just a moment ago with the numbers 1-4. Type in “1” for the value, then “control” for the value label then click Add. Do likewise for the other 3 groups. The dialog box should now look like this: Hit OK to save this information. We have one last change to make to the data so that our SPSS output will be more readable. Change the number of decimal places for the performance variable to 4, then save your data file (ctrl- s).

  1. Let’s now conduct 3 t-tests to compare each “learning” group to the control group. Select Analyze| Compare Means | Independent Samples t- test. A dialog box will appear listing your variables in the left-hand pane. The “Test Variable” is the measure, in our case “Performance.” Select “Performance”, then click the arrow button to move it to the right hand box. Our “Grouping Variable” is “Treatment Group.” Select “Treatment Group” then click the arrow button to move it onto the smaller box. The dialog box should now look like this:

Essentially, the Levene test uses the F statistic to test whether we should reject the null hypothesis that the variances are all equal. If the null is rejected, then we would conclude that the variances are sufficiently different to invalidate the t-test. If the Levene test fails to reject the null, then we conclude that the variances are approximately equal and that the t-test is valid. The next 7 columns present information about the t-test. Note that the two rows of numbers are identical for the t value, Mean Difference and Std. Error Difference columns. These values are unaffected by whether the assumption of equal variance is valid or not. The “Mean Difference” value represents the difference between the means of the two groups listed in the first box (pull out your calculator and confirm this if you don’t believe me). The “Std. Error Difference” is the standard error of the difference between the groups. Mathematically, it is the vector sum of the standard errors of the mean for each group. Hence, this number is equal to the square root of the sum of the squared standard errors of the mean listed in the first box (again, pull out your calculator and confirm this if you don’t believe me). The t value is simply the mean difference divided by the standard error difference. The last two columns list the upper and lower 95% confidence intervals for the mean difference between the groups. The numbers listed here are equal to the mean difference +/- 1.96*std error difference (one more time: pull out your calculator and confirm this if you don’t believe me). The assumption of equal variances does affect the degrees of freedom (df) and significance (p value) of the t-test. Note that the lower line (Equal variances not assumed) has fewer degrees of freedom and thus a slightly higher sig. level. This line has essentially corrected for the violation of the equal variances assumption. Note that although the standard deviations of the two groups appeared to be considerably different the corrected significance level is only slightly elevated. The t-test is fairly robust even when it’s assumptions are violated! One last comment: Notice that the significance level is based on a two-tailed test. Perhaps your hypotheses were stated in a directional manner, necessitating a one-tailed test. In this case, how do we calculate the significance level? The significance level of the one-tailed test is always exactly half that of the two tailed test. Now that you’ve conducted all these analyses, have you found any significant differences between the groups? If so, which ones? Note that the confidence intervals of the difference both have to have the same sign for the t-test to be considered significant. This is because the t-test is testing whether the difference between the groups is significantly different than zero.

  1. The one-way ANOVA. Typically, when we are comparing more than two groups, rather than conducting a whole bunch of t-tests (like we did above), instead we test for differences among any of the groups all at once using a one-way ANOVA. Let’s do this now. Select Analyze| Compare Means |

One-Way ANOVA. A dialog box will appear listing your variables in the left-hand pane. The “Dependent List” is where you put the measure, in our case “Performance.” Select “Performance”, then click the arrow button to move it to the right hand box. Our “Factor” is the independent variable, “Treatment Group.” Select “Treatment Group” then click the arrow button to move it onto the Factor box. The dialog box should now look like this: We will skip the Contrasts button for now. Click on the Post Hoc button to select what post hoc tests to perform. You will now see another dialog box that allows you to select any number of post hoc tests, some have the assumption of equal variances, others do not. Post hoc tests allow us to determine which groups significantly differ from each other in a manner similar to conducting t-tests like in part 5 above. For now click on the LSD (least significant difference) test then click Continue. Click the Options button to select options for the analysis. Check the Descriptive and Homogeneity of variance test options then click Continue, then OK. The output should look something like this:

The last column of the ANOVA box gives the significance (p) level for the F statistic. If this value is less than our alpha value (.05) we reject the null hypothesis that all 4 groups have equal means. However, even if p < .05, we still don’t know which of the 4 groups differ significantly from one-another. That’s where the post-hoc tests come in. Post hoc tests allow us to contrast 2 groups at a time to see which differences between the groups are the significant ones. The data reported for the post hoc tests should look something like this: The simplest form of a post hoc test is simply to conduct t-tests to compare every group to every other group. For 4 groups this would require 6 separate tests: (J-1)! Where J is the number of groups. The problem with this is that the overall alpha level must be scaled by the number of separate tests. Imagine a case where there are 5 groups resulting in 24 separate tests. If we use an alpha level of .05 for all the tests, then we would expect at least one test to come out at p < .05 even if the treatment had no effect, because there is a 1/20 chance of a type one error with alpha = .05 and we are conducting more than 20 tests. Post hoc tests take this into account and scale the significance level by the number of tests performed. The box shows the statistics for all 6 comparisons. There appear to be 12 only because each comparison is listed twice. The data in the table mimic the data reported for the t-tests (see #5 above).