CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH (CSSCR) UNIVERSITY OF WASHINGTON SPRING 2013 CONSULTANT: SHIN HAENG LEE Introduction to SPSS.

Slides:



Advertisements
Similar presentations
Data Analysis using SPSS By Dr. Shaik Shaffi Ahamed Ph. D
Advertisements

BCIS IB (Test 2) Excel Lessons 4 – 8 Press space bar to Advance Frame.
Using SPSS. Handy buttons Switch between values & value labels Info about variables (& ‘Go To’)
©2004, 2006, 2008 UIW Department of Instructional Technology Meat and Potatoes SPSS Presented by Terence Peak.
5/15/2015Slide 1 SOLVING THE PROBLEM The one sample t-test compares two values for the population mean of a single variable. The two-sample test of a population.
Copyright © Allyn & Bacon (2007) Using SPSS for Windows Graziano and Raulin Research Methods This multimedia product and its contents are protected under.
Introduction to SPSS Allen Risley Academic Technology Services, CSUSM
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
By Wendiann Sethi Spring  The second stages of using SPSS is data analysis. We will review descriptive statistics and then move onto other methods.
AVP for Institutional Effectiveness and Director of IR Muriel Lopez-Wagner Assistant Director Tanner Carollo Institutional Effectiveness Associate Joanna.
1 An Introduction to IBM SPSS PSY450 Experimental Psychology Dr. Dwight Hennessy.
A Simple Guide to Using SPSS© for Windows
Introduction to SPSS (For SPSS Version 16.0)
Introduction to SPSS Descriptive Statistics. Introduction to SPSS Statistics Program for the Social Sciences (SPSS) Commonly used statistical software.
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
Multiple Regression – Basic Relationships
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
SPSS Statistical Package for the Social Sciences is a statistical analysis and data management software package. SPSS can take data from almost any type.
Assumption of Homoscedasticity
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Problem 1: Relationship between Two Variables-1 (1)
SW388R7 Data Analysis & Computers II Slide 1 Analyzing Missing Data Introduction Problems Using Scripts.
FEBRUARY, 2013 BY: ABDUL-RAUF A TRAINING WORKSHOP ON STATISTICAL AND PRESENTATIONAL SYSTEM SOFTWARE (SPSS) 18.0 WINDOWS.
CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH (CSSCR) UNIVERSITY OF WASHINGTON Fall Quarter, 2012 Prepared by Eric Hamilton INTRODUCTION TO SPSS (AND.
Introduction to SPSS (For SPSS Version 16.0)
MOUSING WITH SPSS Frances Provan, Information Services, Edinburgh University Useful point and click.
PY550 Research and Statistics Dr. Mary Alberici Central Methodist University.
 Overview of SPSS  Interface  Getting Started  Managing Data  Descriptive Statistics  Basic Analysis  Additional Resources.
Data Analysis Using SPSS
Introduction to SPSS Edward A. Greenberg, PhD
9/23/2015Slide 1 Published reports of research usually contain a section which describes key characteristics of the sample included in the study. The “key”
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
SPSS Presented by Chabalala Chabalala Lebohang Kompi Balone Ndaba.
Developed By Information Technology Services University Of Saskatchewan.
SPSS Overview. The opening screen 2 The SPSS windows 3.
Example SPSS Basic Medical Statistics Course October 2010 Wilma Heemsbergen.
What is SPSS  SPSS is a program software used for statistical analysis.  Statistical Package for Social Sciences.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
WINKS 7 Tutorial 7 – Advanced Topic: Labels and Formats Permission granted for use for instruction and for personal use. © Alan C. Elliott,
Developed By Information Technology Services University Of Saskatchewan.
1 An Introduction to SPSS for Windows Jie Chen Ph.D. 6/4/20161.
A Simple Guide to Using SPSS ( Statistical Package for the Social Sciences) for Windows.
Dr. Engr. Sami ur Rahman Research Methods in Computer Science Lecture: Data Analysis (Introduction to SPSS)
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
SPSS- Tutorial The following power-point slides show you how to use some of the features in SPSS. A survey of 20 randomly selected companies asked them.
SW318 Social Work Statistics Slide 1 Percentile Practice Problem (1) This question asks you to use percentile for the variable [marital]. Recall that the.
Basics of Biostatistics for Health Research Session 1 – February 7 th, 2013 Dr. Scott Patten, Professor of Epidemiology Department of Community Health.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
1. Tables, Charts, and Graphs Microsoft Word & Excel 2003.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
PSY6010: Statistics, Psychometrics and Research Design Professor Leora Lawton Spring 2007 Wednesdays 7-10 PM Room 204.
16a. Accessing Data: Means in SPSS ®. 16a. Accessing Data: Means in SSPS ® 1 Prerequisites Recommended modules to complete before viewing this module.
Using SPSS Next. An Introduction SPSS (the Statistical Package for the Social Sciences)
CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH (CSSCR) UNIVERSITY OF WASHINGTON FALL 2015 CONSULTANT: SHIN HAENG LEE Intro to R with R commander.
Extracting Information from an Excel List The purpose of creating a database, or list in Excel, is to be able to manipulate the data elements in ways that.
1 PEER Session 02/04/15. 2  Multiple good data management software options exist – quantitative (e.g., SPSS), qualitative (e.g, atlas.ti), mixed (e.g.,
Analyzing Data. Learning Objectives You will learn to: – Import from excel – Add, move, recode, label, and compute variables – Perform descriptive analyses.
(Slides not created solely by me – the internet is a wonderful tool) SW388R7 Data Analysis & Compute rs II Slide 1.
IENG-385 Statistical Methods for Engineers SPSS (Statistical package for social science) LAB # 1 (An Introduction to SPSS)
If sig is less than 0.05 (A) then the test is significant at 95% confidence (B) then the test is significant at 90% confidence (C) then the test is significant.
Introduction to SPSS July 28, :00-4:00 pm 112A Stright Hall
Introduction to SPSS.
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
DEPARTMENT OF COMPUTER SCIENCE
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
Merve denizci nazlıgül, M.s.
 .
Presentation transcript:

CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH (CSSCR) UNIVERSITY OF WASHINGTON SPRING 2013 CONSULTANT: SHIN HAENG LEE Introduction to SPSS

Class Objectives Opening and managing datasets SPSS Syntax Running descriptive statistics and crosstabs Hypothesis Testing and Inferential Statistics Resources for learning more about SPSS

Basic Structure of SPSS SPSS has three windows for working with data  The Data Editor Window (.sav) Shows data in two forms: Data view & Variable view  The Output Viewer Window (.spv) Shows results of data analysis  The Syntax Editor Window (.sps) Shows the syntax command script. This is also where you can type and run your own syntax commands. GUI (Graphical User Interface): Commands can be issued by the mouse through menu selections that cause dialog boxes to appear Syntax: Write command language programs to store and run your statistical processes.

Why Use Syntax? Can save a great deal of time when running repetitive analyses. Easy to document your work. Can instantly duplicate that work with a new (or updated) data set. Can ‘tweak’ your analysis in ways not available through dialog boxes. Creating and Saving a Syntax File: Syntax files in SPSS are plain text files with an extension of ‘.sps’. 1) To open a new syntax file: File > New > Syntax 2) To save the file: File > Save> (Dialogue box will pop up. Name and designate location)

Importing a Data File Select File > Open > Data Locate the folder that contains your data file. Select the format of your incoming data with the “Files of type” button. Locate and select your data file, then click Open. A window will appear and ask whether the first row in the dataset represents variable names (Yes), click OK Check to see the data appears as in your original dataset Go to: Start -> Run Then Type: o:classdata spssint The files will then be automatically copied to c:\temp\spssint For the examples covered in this presentation, open “GSS2012.sav ”

How to Use Syntax? Archiving Procedure and Describing Data The easiest way to start using syntax is by using the ‘paste’ button available in most dialog boxes. 1) Select the options you wish from the dialog box, then, instead of clicking ‘OK’, click ‘Paste’. 2) If you already have a syntax window open, the commands will be pasted at the bottom of the currently active syntax window. 3) The Syntax Editor allows you to edit a plain text file and submit selected commands to SPSS directly. 4) To run only part of the commands, highlight the commands you wish to run 5) Hit the green arrow (run command) and you will see on your output viewer the results of your commands.

Structure of Commands in SPSS syntax Commands in SPSS begin with a keyword that is the name of the command followed by any subcommands and user specifications. The end of the command is marked by a period. In SPSS syntax files, commands must always be placed in the first column. Refer to the Command Syntax Reference for a discussion of available commands and options. It can be found in the menus under Help > Command Syntax Reference. You can add notes (using *), cut, paste and edit just as with any other text file. Remember not to add other periods in your documentation if you use this method, since SPSS will try to interpret everything after the period as commands. Another method is to use /* and */ to set off a comment. That is, start with /*, insert your comment of as many or as few words and lines as you want then end the comment with */.

Data Management: RECODE The RECODE command: Change the values of a variable. It is useful to reverse code responses to a survey (change the highest response to the lowest and vice versa). Transform > Recode into Different Variables Recode variables: happy7, sex, marital, health1, socbar, socfrend Syntax Programming: DATASET ACTIVATE DataSet1. RECODE happy7 (7=1) (6=2) (5=3) (4=4) (3=5) (2=6) (1=7) INTO happiness. VARIABLE LABELS happiness ‘HOW HAPPY YOU ARE’. VALUE LABELS happiness 1 ‘Completely unhappy’ 2 ‘Very unhappy’ 3 ‘Fairly unhappy 4 ‘Neither happy nor unhappy’ 5 ‘Fairly happy’ 6 ‘Very happy’ 7 ‘Completely happy’. RECODE sex (1=1) (2=0) INTO male. VARIABLE LABELS male ‘MALE (Yes)’. VALUE LABELS male 1 ‘Male’ 0 ‘Female’.

Data Management: RECODE RECODE marital (1=1) (ELSE=0) INTO married. VARIABLE LABELS married ‘MARRIED (Yes)’. VALUE LABELS married 1 ‘Married’ 0 ‘Single’. RECODE health1 (5=1) (4=2) (3=3) (2=4) (1=5) INTO health_new. VARIABLE LABELS health_new ‘HEALTH IN GENERAL’. VALUE LABELS health_new 1 ‘Poor’ 2 ‘Fair’ 3 ‘Good’ 4 ‘Very good’ 5 ‘Excellent’. RECODE socbar (7=1) (6=2) (5=3) (4=4) (3=5) (2=6) (1=7) INTO socbar_new. VARIABLE LABELS socbar_new ‘SPEND EVENING AT BAR’. VALUE LABELS socbar_new 1 “Never’ 2 ‘Once a year’ 3 ‘Sev times a year’ 4 ‘Once a month’ 5 ‘Sev time a mnth’ 6 ‘Sev times a wekk’ 7 ‘Almost daily’. RECODE socfrend (7=1) (6=2) (5=3) (4=4) (3=5) (2=6) (1=7) INTO socfrend_new. VARIABLE LABELS socfrend_new ‘SPEND EVENING WITH FRIENDS’. VALUE LABELS socfrend_new 1 “Never’ 2 ‘Once a year’ 3 ‘Sev times a year’ 4 ‘Once a month’ 5 ‘Sev time a mnth’ 6 ‘Sev times a wekk’ 7 ‘Almost daily’. EXECUTE.

Data Management: COMPUTE The COMPUTE command: Create new numeric variables or modify the values of existing string or numeric variables. Transform > Compute Variable Create a new numeric variable: sociability Syntax Programming: COMPUTE sociability=socbar_new+socfrend+new. VARIABLE LABELS sociability ‘HOW SOCIABLE YOU ARE’. EXECUTE.

Descriptive statistics Go to Analyze > Descriptive Statistics > Descriptives Select the variables for which you want descriptives. Then click Paste. By default, SPSS will paste syntax with commands and specifications in all caps, and will display variables as you have entered them. Variable names in SPSS are generally separated by spaces. Don’t forget the period at the end of the command. Syntax Programming: DESCRIPTIVES VARIABLES=happiness age childs health_new sociability /STATISTICS=MEAN STDDEV MIN MAX.

Frequencies for categorical data Go to Analyze > Descriptive Statistics > Frequencies FREQUENCIES produces tables of frequency counts and percentages of the values of individual variables. FREQUENCIES is used to obtain frequencies and statistics for categorical variables and to obtain statistics and graphical displays for continuous variables. Syntax Programming: FREQUENCIES VARIABLES=sex income married degree /BARCHART PERCENT /ORDER=ANALYSIS.

Cross tabulation To look at frequencies of data nested across multiple variables (an run a Chi-Square test): Analyze > Descriptive Statistics > Crosstabs Move the variables of interest over with the arrows (ex: sex & degree). Select the options you would like to apply to the Crosstabs output (Statistics, etc.). Click Paste. Syntax Programming: CROSSTABS /TABLES=degree BY sex /FORMAT=AVALUE TABLES /CELLS=COUNT EXPECTED COLUMN /COUNT ROUND CELL /BARCHART.

Hypothesis Testing: t-test There are three types of t-tests: 1) One-Sample T test- to compare a single sample with a population value, 2) Independent-Samples T test- to compare two groups’ scores on the same variable, and 3) Paired-Sample T test- to compare the means of two variables within a single group. To compare the means of happiness for two groups of cases: Go to Analyze > Compare means > Independent-samples t-test Syntax Programming: DATASET ACTIVATE Dataset1. T-TEST GROUPS=married(0 1) /MISSING=ANALYSIS /VARIABLES=happiness /CRITERIA=CI(.95).

Hypothesis Testing: correlation Go to Analyze > Correlate. Select Bivariate, if you are interested only in the relationships between two variables, or Partial, if you are measuring the association between two variables but want to factor out the effect of other variables. Select the variables for which you want the correlation. Ex) happiness age, income, & degree Then click Paste. Syntax Programming: NONPAR CORR /VARIABLES=happiness age income degree /PRINT=SPEARMAN TWOTAIL NOSIG /MISSING=PAIRWISE.

Hypothesis Testing: linear regression To run a multiple linear regression (OLS) Go to Analyze > Regression > Linear. Select your dependent variable ( happiness ) and your independent variables ( age, male, income, degree, married, childs, health_new, sociability ) from the list on the left, then click Paste. We can make a prediction using the regression equation (Y=βX + α) Syntax Programming: REGRESSION /MISSING LISTWISE /STATISTICS COEFF OUTS R ANOVA /CRITERIA=PIN(.05) POUT(.10) /NOORIGIN /DEPENDENT happiness /METHOD=ENTER age male income degree married childs helath_new sociability.

Exporting Outputs To export outputs, go to File > Export Specify the type of output you want to export from the File Type drop- down menu. You can export the outputs in Html, Text, Excel, Word, PDF, or PowerPoint format. Specify your file destination and name in the File Name box. Then click OK.

Helpful Resources Quicktime SPSS classes and SPSS handouts on the CSSCR website:  Many other resources online to help you learn SPSS (tutorials, blogs, etc.). Some examples: CSSCR offers classes on SPSS every quarter or call us to schedule an appointment with one of the CSSCR consultants!