Docsity

SPSS Guide for Statistical Analysis in PSYC 330L, Essays (high school) of History

Toggle sidebar
bg1
SPSS Guide PSYC 330L—Burnham
Table of Contents
1. General Stuff.....................................................................................................................................................................2
1.A. Where is SPSS Available..........................................................................................................................................2
1.B. Types of SPSS Files..................................................................................................................................................2
1.C. Importing Data Files (e.g., .xls, .txt)..........................................................................................................................2
1.D. Defining and Adjusting Variables...............................................................................................................................3
1.E. Entering Data by Hand..............................................................................................................................................4
1.F. Splitting the Output (“Split File”).................................................................................................................................4
2. Considerations for the Type of Test to Use........................................................................................................................4
2.A. Step 1: What Type of Relationship?..........................................................................................................................4
2.A.i. Between or Within Groups.................................................................................................................................4
2.A.ii. Number of Levels and Number of Independent Variables.................................................................................5
2.B. Type of Data?............................................................................................................................................................5
2.C. Selecting the Test......................................................................................................................................................5
3. Inferential Tests for Differences.........................................................................................................................................7
3.A. Quantitative (Ratio and Interval) Data.......................................................................................................................7
3.A.i. One Sample t-Test..............................................................................................................................................7
3.A.ii. Independent Samples t-Test..............................................................................................................................7
3.A.iii. Correlated Samples (Dependent Measures, Paired Samples) t-Test................................................................7
3.A.iv. Between Subjects ANOVA................................................................................................................................8
3.A.v. Repeated Measures ANOVA.............................................................................................................................8
3.B. Ordinal Data..............................................................................................................................................................8
3.B.i. Kolmogorov-Smirnov Test..................................................................................................................................8
3.B.ii. Wilcoxan Test....................................................................................................................................................9
3.B.iii. Friedman's Test.................................................................................................................................................9
3.B.iv. Kruskal-Wallis Test............................................................................................................................................9
3.C. Nominal data...........................................................................................................................................................10
3.C.i. Chi-Square Goodness of Fit.............................................................................................................................10
3.C.ii. Chi-Square Independence..............................................................................................................................10
3.C.ii. Cochran's Q Test.............................................................................................................................................11
4. Inferential Tests for Associations/Correlations..................................................................................................................11
4.A. Quantitative (Ratio and Interval) Data: Pearson's Correlation.................................................................................11
4.B. Ordinal Data: Spearman's Correlation.....................................................................................................................11
4.C. Nominal data: Cramer's V and Phi Coefficient........................................................................................................12
- 1 -
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download SPSS Guide for Statistical Analysis in PSYC 330L and more Essays (high school) History in PDF only on Docsity!

Table of Contents

    1. General Stuff.....................................................................................................................................................................
    • 1.A. Where is SPSS Available..........................................................................................................................................
    • 1.B. Types of SPSS Files..................................................................................................................................................
    • 1.C. Importing Data Files (e.g., .xls, .txt)..........................................................................................................................
    • 1.D. Defining and Adjusting Variables...............................................................................................................................
    • 1.E. Entering Data by Hand..............................................................................................................................................
    • 1.F. Splitting the Output (“Split File”).................................................................................................................................
    1. Considerations for the Type of Test to Use........................................................................................................................
    • 2.A. Step 1: What Type of Relationship?..........................................................................................................................
      • 2.A.i. Between or Within Groups.................................................................................................................................
      • 2.A.ii. Number of Levels and Number of Independent Variables.................................................................................
    • 2.B. Type of Data?............................................................................................................................................................
    • 2.C. Selecting the Test......................................................................................................................................................
    1. Inferential Tests for Differences.........................................................................................................................................
    • 3.A. Quantitative (Ratio and Interval) Data.......................................................................................................................
      • 3.A.i. One Sample t-Test..............................................................................................................................................
      • 3.A.ii. Independent Samples t-Test..............................................................................................................................
      • 3.A.iii. Correlated Samples (Dependent Measures, Paired Samples) t-Test................................................................
      • 3.A.iv. Between Subjects ANOVA................................................................................................................................
      • 3.A.v. Repeated Measures ANOVA.............................................................................................................................
    • 3.B. Ordinal Data..............................................................................................................................................................
      • 3.B.i. Kolmogorov-Smirnov Test..................................................................................................................................
      • 3.B.ii. Wilcoxan Test....................................................................................................................................................
      • 3.B.iii. Friedman's Test.................................................................................................................................................
      • 3.B.iv. Kruskal-Wallis Test............................................................................................................................................
    • 3.C. Nominal data...........................................................................................................................................................
      • 3.C.i. Chi-Square Goodness of Fit.............................................................................................................................
      • 3.C.ii. Chi-Square Independence..............................................................................................................................
      • 3.C.ii. Cochran's Q Test.............................................................................................................................................
    1. Inferential Tests for Associations/Correlations..................................................................................................................
    • 4.A. Quantitative (Ratio and Interval) Data: Pearson's Correlation.................................................................................
    • 4.B. Ordinal Data: Spearman's Correlation.....................................................................................................................
    • 4.C. Nominal data: Cramer's V and Phi Coefficient........................................................................................................

1. General Stuff

1.A. Where is SPSS Available

  • SPSS is available in the following locations: ◦ Weinberg Memorial Library (WML) on the 1st floor and in the group study rooms ◦ Brennan Hall (BRN) rooms 102 and 201 ◦ McGurrin Hall (MGH) room 110 ◦ Hyland (HYL) Café and room 102 ◦ Alumni Memorial Hall (AMH) rooms 214 and 202
  • May be available in the PT/OT lab in the Leahy basement and in the Nursing Lab and Stout Lab in McGurrin Hall.^1 1.B. Types of SPSS Files
  1. Data Files contain data to be analyzed and have the extension '.sav'. Data files look a lot like a Microsoft Excel spreadsheet, with columns, rows and cells. Columns represent variables with an abbreviated name of the variable at the top of each column. Rows represent cases or subjects. That is, each row/case could be the data associated with an individual, or a sample. Cells and values within the file are the data.
  2. Syntax Files are used to request SPSS conduct an analysis, and have the extension '.sps'. Syntax files are command files that tell SPSS what to do with data. Most analyses and procedures can be obtained through menus, but, syntax is better.
  3. Output Files are generated in response to SPSS running a procedure on a set of data and have the extension '.spv' (SPSS v.18 and later the extension is '.spo'). Importantly, if something was done incorrectly SPSS will produce a Warning with no additional output. 1.C. Importing Data Files (e.g., .xls, .txt)
  • There are several methods of getting data into SPSS:
  1. Enter data by hand (Covered in the next section)
  2. Importing from MS Excel (*.xls) or some other database
  3. Importing from an text, or ASCII (*.txt) file
  4. Open a SPSS data file (*.sav)—this can be done only with an existing data file
  • Importing Data from Excel
  1. Open a blank SPSS data editor
  2. From the File menu, click the Open menu and then select the Data option
  3. When the Open File window opens change the type of file to Excel (*.xls or *.xlsx) File → Open → Data
  4. Navigate the folders to where you saved the Excel file. When you locate the file double-click.
  5. When you are opening the file a dialog box will open. Be sure that the “Read variable names from the first row of data” is checked.
  6. Click 'OK'.
  7. Save the file to the same folder as a SPSS data (*.sav file) 1 Thanks to Dr. Barry Kuhle (University of Scranton) for compiling this list.

1 .E. Entering Data by Hand

  • When your variables have been named you can start entering data. You must be in Data View to do so.
  • The newly-named variables will appear as column headings on the top of the data sheet.
  • For each case/row, carefully enter the appropriate value. 1.F. Splitting the Output (“Split File”)
  • When you request a statistic from SPSS, for example the mean, SPSS will calculate the statistic over all cases/subjects in a data set, unless you tell it to do otherwise.
  • In many cases, you might want to examine a statistic (e.g., mean) for each group that is represented in your data set. For example, you may want to examine the mean for males and the mean for females.
  • To example different groups in your data set separately, you must “Split” the file:
  1. Under the Data menu, select Split File Data → Split File
  2. In the pop-up window click 'Organize Output by Groups'.
  3. Then, select which variable in your data set you want to separate the output by.
  4. Request the statistics that you want calculated.
  • To turn off the Split File option:
  1. Under the Data menu, select Split File
  2. In the pop-up window, click 'Analyze All Cases, Do Not Create Groups.'

2. Considerations for the Type of Test to Use

2.A. Step 1: What Type of Relationship?

  • You obviously have a variable or two that you are analyzing, but what type of relationship are you assessing? Do you have an experimental design? Are you looking at a statistical association?

• Differences: IF you are using an experimental design or a quasi-experimental design, then you are likely looking

for a difference in means or frequencies between levels of some independent variable. For example, are Sophomores smarter than Freshmen? 2.A.i. Between or Within Groups

  • Is your independent variable being manipulated between-groups or within groups?

• Between Groups: Each subject is exposed to only a single level of an independent variable, or can belong

to one and only one level of an independent variable. For example, comparing the mean anxiety in a Drug Group and a Placebo Group is likely a between-groups manipulation. Comparing the heights of males and females is between-subjects, because members of each sex cannot belong to the other group.

• Within Groups: This is also called a repeated-measures design. This is where every subject is exposed to

every level of an independent variable; thus, each subject is being repeatedly measured. For example, giving someone a driving test before and after a driving-safety course.

2.A.ii. Number of Levels and Number of Independent Variables

  • Independent variables can have two or more levels, and you can use more than one independent variable in a study (factorial design).
  • One Level: This is where you are comparing a single group mean to some standard value, perhaps a population mean. For example, comparing the mean SAT score of incoming freshmen to the mean GPA of all students taking the SATs in a given year.
  • Two Levels: If you have a between-subject's design, you are comparing one group's performance to the performance in another group. For example, comparing Seniors to Juniors. For within-subjects designs, you are comparing the same group of individual's performance scores from two separate occasions.
  • More than Two Levels: For between-subjects designs, you are comparing performance between more than two groups. For example, Freshmen, Sophomores, Juniors, and Seniors. For within-subjects designs, you are comparing the same group of individual's performance on more than two separate occasions.
  • Multiple Independent Variables: If you have two or more independent variables you have a factorial design. Using SPSS to analyze data collected in a factorial design is not much different than when you have one independent variable; you just need to examine main effects and interactions as well.
  • Correlations: If you are only measuring dependent variables, and not using any independent variable, then you are trying to determine whether one variable is statistically associated with another. That is, do values of one variable “covary” with the values of another variable. For example, as SAT scores increase does college GPA increase? 2.B. Type of Data?
  • The type of data is the scale of measure (Nominal, Ordinal, or Quantitative[Ratio and interval]) for your Dependent Variable , not the independent variable if you have one.
  • Nominal Data: Includes data that is categorical and numbers are used only as labels. There is no actual quantitative value associated with data, thus the data cannot be ranked in any logical or numerical order. For example, measuring someone's college major is on a nominal scale, because students belong to categorically/qualitatively different (not numerically different) majors.
  • Ordinal Data: Includes numerical data or categorical data that have been rank-ordered in some meaningful way; thus there is some logical structure to the order in which the data are placed. However, the order is a relative measure and there is no exact value associated with each entry. Thus, all you can know is the relative position of one entry to other entries; you cannot know the degree or magnitude of the difference between entries. For example, the outcome of a race (1st, 2nd, 3rd) or degree of happiness (very sad, sad, neutral, happy, very happy happy) are measured on an ordinal scale.
  • Quantitative (Interval and Ratio) Data: includes data that can be ordered and scaled and does allow one to express magnitudes, differences in magnitudes and ratios of magnitudes. 2.C. Selecting the Test
  • The figure on the next page shows a flow chart for identifying which type of inferential test to use given:
  1. The type of relationship being examined: Difference or Correlation
  2. If examining a difference, whether the independent variable is Within Subjects or Between Subjects
  3. The measurement scale of the dependent variable: Nominal, Ordinal, or Quantitative
  4. If examining a difference, the number of levels of the independent variable
  • Descriptions for obtaining the tests through SPSS follow the figure

3. Inferential Tests for Differences

3.A. Quantitative (Ratio and Interval) Data

• For all t-Tests: The level of significance given in the SPSS output is the exact alpha-level ( p -Value) for a two-

tailed, non-directional test. You should divide this value by 2 if you are using a one-tailed, directional test. 3.A.i. One Sample t-Test

  • Use the following sequence to get to the test: Analyze → Compare Means → One-Sample t-test

• Your dependent variable goes in the Test Variable box.

• The hypothetical population mean goes in the Test Value box at the bottom. By default SPSS sets this to

0, so be careful, you may need to adjust this value. If you need to change this value, the value should be in the same measurement unit as the dependent variable (e.g., ones, tens, tenths, hundredths, etc.) 3.A.ii. Independent Samples t-Test

  • Use the following sequence to get to the test: Analyze → Compare Means → Independent Samples t-test
  • Your dependent variable goes in the Test Variable box. Importantly, if you want to compare groups on more than one dependent variable, you can list as many dependent variables in this box as you would like.
  • Your independent variable does in the Grouping Variable box.
  • Click on Define Groups and then click the independent variable you are examining.
  • Insert the number that is associated with each level of the independent variable you are comparing into the Group 1 and Group 2 boxes. 3.A.iii. Correlated Samples (Dependent Measures, Paired Samples) t-Test
  • Use the following sequence to get to the test: Analyze → Compare Means → Paired Samples t-test
  • Click on one variable and then click on another variable in the box on the left. Make sure that each variable represents a different level of the same independent variable. If you have a directional hypothesis, click the variables in the order of your hypothesis. For example, if you are predicting A1 to be greater than A2, click on A1 first and then A2. If you have a non-directional hypothesis this is not relevant.
  • Once you have selected your two variable, click the purple button in the middle.

3.A.iv. Between Subjects ANOVA

  • Use the following sequence to get to the test: Analyze → General Linear Model → Univariate
  • Your dependent variable goes in the Dependent Variable box.
  • Your Independent Variable goes in the Fixed Factor box. If you have more than one independent variable, the other independent variables go here as well.
  • Click on the Post Hoc box and check off which type of post-hoc test you would like performed (e.g., Tukey's LSD, Bonferroni).
  • Click on the Options box and click Descriptive to obtain the means and standard deviations. 3.A.v. Repeated Measures ANOVA
  • Use the following sequence to get to the test: Analyze → General Linear Model → Repeated Measures
  • In the Within Subjects Factor Name box, type in the name of the independent variable. This cannot be the name of a preexisting variable in the data set.
  • In the Number of Levels box, type in the number of levels for this independent variable.
  • Click Add.
  • Click Define.
  • [If you have more than one independent variable, the additional independent variables and the number of levels of each independent variable should be entered and added before clicking Define .]
  • From the box on the left, click the name of the first level of your independent variable and then click the purple arrow button to move it to the Within Subjects Variables box. Continue with each additional level of your independent variable.
  • For post-hoc tests, click Options. In the Factors and Factors Interactions box, highlight the variable and move it to the Display Means For box. Click Compare Main Effects and under Confidence Interval Adjustment , select LSD or Bonferroni.
  • Click on the Options box and click Descriptive to obtain the means and standard deviations. 3.B. Ordinal Data
  • With ordinal data, you are using non-parametric statistics, so you cannot make any inferences about means and standard deviations and you will not report means or standard deviations as part of your Results.
  • If you want to report medians or ranges for descriptive statistics, go to Analyze → Descriptive Statistics → Frequencies. Click on Statistics and click the boxes for Median , Range , and whatever else you would like. 3.B.i. Kolmogorov-Smirnov Test
  • This can be used when have a one-sample test.
  • Use the following sequence to get to the test: Analyze → Non-Parametric Tests→ Legacy Dialogs → 1-Sample K-S
  • Your independent variable does in the Grouping Variable box.
  • Click on Define Groups and then click the independent variable you are examining.
  • Insert the number that is associated with each level of the independent variable you are comparing into the Group 1 and Group 2 boxes.
  • Click Options to request the Descriptive statistics and Quartiles be calculated. 3.C. Nominal data
  • For nominal data, you should not (and cannot) report any of the normal descriptive statistics (means, standard deviations, medians, etc.). The only proper measure of central tendency is the mode when your data is on a nominal scale.
  • If you want to report mode as a descriptive statistic, go to Analyze → Descriptive Statistics → Frequencies. Click on Statistics and click the box for Mode. 3.C.i. Chi-Square Goodness of Fit
  • This can be used when you have two or more levels of a between subjects independent variable.
  • Use the following sequence to get to the test: Analyze → Non-Parametric Tests→ Legacy Dialogs → Chi-Square
  • Put the variable (or variables) into the Test Variables List box.
  • If all of the levels of your variable are predicted to be equal, under Expected Values , click on All Categories Equal (this is default).
  • If there is a predicted portion that is not all equal, then you need to click on the Values box. It is important which proportion you enter first! The proportion you enter first depends on which category for the variable has the smallest dummy-coded number. For example, if you were assessing proportions of males and females and females were coded 1 and males were coded 2, then the first percentage you enter into the Values box would be for females and the second would be for males. 3.C.ii. Chi-Square Independence
  • This can be used when you have two or more independent variables.
  • Use the following sequence to get to the test: Analyze → Descriptive Statistics → Crosstabs
  • Put one variable into the Rows box and one variable into the Columns box. It does not matter which variable goes where.
  • Click on Statistics.
  • Click on Chi-Square.

3.C.ii. Cochran's Q Test

  • This can be used when you have two or more levels of a within-subjects independent variable
  • Use the following sequence to get to the test: Analyze → Non-Parametric Tests→ Legacy Dialogs → K Related Samples

• Be sure that the only checked box is for Cochran's Q. Click OFF the box for Friedman.

• Put the variables into the Test Variables box.

  • If you have more than two levels of your independent variable and you need to determine which levels are significantly different from each other, the only way to do this is to run multiple Cochran's Q tests and compare each pair of levels.

4. Inferential Tests for Associations/Correlations

4.A. Quantitative (Ratio and Interval) Data: Pearson's Correlation

  • Use the following sequence to get to the test: Analyze → Correlate → Bivariate

• Be sure that the only checked box is for Pearson.

• Put the variables to be analyzed into the Variables box. The order is not important. SPSS will calculate the

correlation for every pair of variables on the list of variables entered for analysis.

• Under Test of Significance , select two-tailed or one-tailed , based on your hypothesis.

• Under Options , you can request the Means and Standard Deviations as well as the Covariances and Cross

Products to be calculated by checking the appropriate boxes. 4.B. Ordinal Data: Spearman's Correlation

  • Use the following sequence to get to the test: Analyze → Correlate → Bivariate

• Be sure that the only checked box is for Spearman. Click OFF the box for Pearson.

• Put the variables to be analyzed into the Variables box. The order is not important. SPSS will calculate the

correlation for every pair of variables on the list of variables entered for analysis.

• Under Test of Significance , select two-tailed or one-tailed , based on your hypothesis.