1 Using the Syntax window AKA Learning a new language!

Slides:



Advertisements
Similar presentations
CORRELATIONAL RESEARCH o What are the Uses of Correlational Research?What are the Uses of Correlational Research? o What are the Requirements for Correlational.
Advertisements

Data Analysis using SPSS By Dr. Shaik Shaffi Ahamed Ph. D
1 COMM 301: Empirical Research in Communication Kwan M Lee Lect4_1.
Descriptive Statistical Analyses Reliability Analyses Review of Last Class.
1 An Introduction to IBM SPSS PSY450 Experimental Psychology Dr. Dwight Hennessy.
Lecture 6: Multiple Regression
A Simple Guide to Using SPSS© for Windows
8/2/2015Slide 1 SPSS does not calculate confidence intervals for proportions. The Excel spreadsheet that I used to calculate the proportions can be downloaded.
Chapter 7 Correlational Research Gay, Mills, and Airasian
Problem 1: Relationship between Two Variables-1 (1)
8/9/2015Slide 1 The standard deviation statistic is challenging to present to our audiences. Statisticians often resort to the “empirical rule” to describe.
SW388R7 Data Analysis & Computers II Slide 1 Multiple Regression – Basic Relationships Purpose of multiple regression Different types of multiple regression.
Correlation Question 1 This question asks you to use the Pearson correlation coefficient to measure the association between [educ4] and [empstat]. However,
Questionnaire Development Part II: SPSS, Reliability, and Validity Personality Lab October 11, 2010.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Internal Consistency Reliability Analysis PowerPoint.
SW388R7 Data Analysis & Computers II Slide 1 Multiple Regression – Split Sample Validation General criteria for split sample validation Sample problems.
SW388R7 Data Analysis & Computers II Slide 1 Analyzing Missing Data Introduction Problems Using Scripts.
Introduction to SPSS (For SPSS Version 16.0)
8/20/2015Slide 1 SOLVING THE PROBLEM The two-sample t-test compare the means for two groups on a single variable. the The paired t-test compares the means.
Chapter Sixteen Starting the Data Analysis Winston Jackson and Norine Verberg Methods: Doing Social Research, 4e.
DEVELOPING A CODING SCHEME AND SETTING UP YOUR SPSS DATA FILE
How to Analyze Data? Aravinda Guntupalli. SPSS windows process Data window Variable view window Output window Chart editor window.
Coding closed questions Training session 5 GAP Toolkit 5 Training in basic drug abuse data management and analysis.
9/18/2015Slide 1 The homework problems on comparing central tendency and variability extend the focus central tendency and variability to a comparison.
Range, Variance, and Standard Deviation in SPSS. Get the Frequency first! Step 1. Frequency Distribution  After reviewing the data  Start with the “Analyze”
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
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.
1 Cronbach’s Alpha It is very common in psychological research to collect multiple measures of the same construct. For example, in a questionnaire designed.
DLI Boot Camp 2011 Finding Statistics: Tools and Techniques Jean Blackburn Vancouver Island University Library SDA.
Questionnaire Development: SPSS and Reliability Personality Lab October 8, 2010.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Entering Data Manually PowerPoint Prepared by.
Example SPSS Basic Medical Statistics Course October 2010 Wilma Heemsbergen.
Floating point numerical information. Previously discussed Recall that: A byte is a memory cell consisting of 8 switches and can store a binary number.
What is SPSS  SPSS is a program software used for statistical analysis.  Statistical Package for Social Sciences.
SW388R6 Data Analysis and Computers I Slide 1 Multiple Regression Key Points about Multiple Regression Sample Homework Problem Solving the Problem with.
 Muhamad Jantan & T. Ramayah School of Management, Universiti Sains Malaysia Data Analysis Using SPSS.
Analyses using SPSS version 19
SW318 Social Work Statistics Slide 1 Measure of Variability: Range (1) This question asks about the range, or minimum and maximum values of the variable.
Slide 1 The introductory statement in the question indicates: The data set to use (2001WorldFactBook) The task to accomplish (association between variables)
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.
Copyright © 2010 Pearson Education, Inc Chapter Seventeen Correlation and Regression.
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.
Organizing & Reporting Data: An Intro Statistical analysis works with data sets  A collection of data values on some variables recorded on a number cases.
About GGum Zhao Shouying. General on IRT Item response theory models have become increasingly popular measurement tools in the past thirty-five years.
16a. Accessing Data: Means in SPSS ®. 16a. Accessing Data: Means in SSPS ® 1 Prerequisites Recommended modules to complete before viewing this module.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Selecting Cases PowerPoint Prepared by Alfred.
Using SPSS Next. An Introduction SPSS (the Statistical Package for the Social Sciences)
D/RS 1013 Data Screening/Cleaning/ Preparation for Analyses.
Data Management Research Methods Professional Development Institute December 4, 2015.
Chapter 8 Linear Regression. Fat Versus Protein: An Example 30 items on the Burger King menu:
Introduction to SPSS Section 2. Interactive Introduction to SPSS Statistical Software Welcome, This module was designed to introduce you to SPSS statistical.
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.
Preparing for Data Analysis Some tips and tricks for getting your data organized so that you can do the “fun stuff”!
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.
Ms. Hall Spring Functions. Excel – Lesson 4 Summarizing Data with Functions A function is a predefined formula that performs a calculation. When.
An Interactive Tutorial for SPSS 10.0 for Windows©
Introduction to the SPSS Interface
An Interactive Tutorial for SPSS 10.0 for Windows©
Downloading and Preparing a StudentVoice File for SPSS
Just the basics: Learning about the essential steps to do some simple things in SPSS Larkin Lamarche.
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
SPSS Overview COM 631/731.
Computing A Variable Mean
Navya Thum January 30, 2013 Day 5: MICROSOFT EXCEL Navya Thum January 30, 2013.
Introduction to the SPSS Interface
Presentation transcript:

1 Using the Syntax window AKA Learning a new language!

2 Why use syntax? To keep a record of computations & analyses –They can get to be too many to recall (esp.. if you are doing ‘exploratory’ analyses) –One may end of redoing analyses them OR –Do analyses differently when redoing them which can cause different & confusing results

3 What is a syntax window? Allows you to type in the modifications of the variables you have Allows you to type/paste in the analyses you like to conduct

4 Syntax in EXCEL Syntax in SPSS Compute lifesat =mean(item1, item2, item3).

5 What we did so far…what’s next What is syntax Why do syntax How is syntax done in SPSS vs EXCEL

6 Example of Syntax in EXCEL Example of Syntax in SPSS Compute lifesat =mean(item1, item2, item3).

7 Features of Syntax in Excel In EXCEL you type/paste syntax in the function box

8 Features of a syntax window in SPSS In SPSS you type/paste functions in a separate window/file which takes the extension.sps (cf..doc,.ppt) See next slide for example of the window

9 The syntax window in SPSS

10 Syntax in SPSS vs EXCEL Done in the same ‘location’ in EXCEL (i.e., in function box) above the data Can also be done in the same location in SPSS, But SPSS provides a “shortcut” for some types of syntax… Analyses syntax Computations syntax

11 What are Analyses & Computations Computations –e.g., recoding variables; or creating new variables means of items Analyses –e.g., correlations, reliabilities, frequencies, means etc. YOU ALREADY KNOW THIS! Note means of items are different from means in the sample…more later…

12 Generate syntax for analyses in SPSS Download & open the student satisfaction survey data Go to the correlational analyses window, pick the two variables you want to correlate Then click on ‘paste’ when in correlational analysis menu Go to the syntax window –Click under window on top right

13 Students work on their own & do correlational analyses for any two variables in the and generate syntax

14 Screen you should be at when you successfully paste the correlational Analyses from the Data Window into the Syntax window

15 Students continue working in syntax window… Select the analyses pasted in the syntax window Click on RUN button on top right

16 What we did so far…what’s next What is syntax Why do syntax How is syntax done in SPSS vs EXCEL –Syntax in SPSS is different for Analyses vs. Computations –Syntax in EXCEL is same for analyses & computations

17 Syntax for computations in SPSS vs EXCEL In SPSS, you need to open a separate syntax window In EXCEL you can directly start typing your computations in the function window

18 How to open a syntax window

19 Close look at Syntax in EXCEL In the example above –“STDEV” is the type of the function Can be substituted w/mean, sum –“A2: A16” in parenetheses are cell values on which the function is to be performed e.g., the values in cells A2 to A16 should be used to compute the std dev

20 How the Syntax in SPSS differs & is similar to that in EXCEL Compute lifesat =mean(item1, item2, item3). Differences from EXCEL –Comma in between items vs. colon –Period at the end of the statement Similarities w/Excel – Can use ‘sum’ and other operands similarly –Items enclosed in parens after the ‘function’

21 More ‘Rules’ of Syntax in SPSS Compute lifesat =mean(item1, item2, item3). –Lifesat is now new variable you computed in your data –Features of the variable name (e.g., lifesat) is 8 characters or fewer Cannot be the same as the name of another variable already in data set It cannot start with a numeric value

22 What we did so far…what’s next What is syntax Why do syntax How is syntax done in SPSS vs EXCEL –Syntax in SPSS is different for Analyses vs. Computations –Syntax in EXCEL is same for analyses & computations

23 Why use syntax? To keep a record of computations & analyses –They can get to be too many to recall (esp.. if you are doing ‘exploratory’ analyses) –One may end of redoing analyses them OR –Doing analyses differently when redoing them which can cause different & confusing results –Check the accuracy of your analyses

24 Checking the accuracy of your analyses and keeping them consistent across iterations with syntax files e.g., *reverse scoring negatively worded LS items. “*” at beginning and “.” at end enables you to use English to make notes about nature of analyses/computations in syntax files –E.g.,*wage is related to education after controlling for SAT scores. –E.g., *tests hypo that wage is related to education after controlling for GPA -- not supported.

25 Taking advantage of SPSS syntax Being accurate Being consistent Rechecking analyses Keeping records Utilizing multi-item scales

26 Computing multi-item scale scores in SPSS using Syntax Window What is a multi-item scale? Why use a scale score rather than an individual item?

27 Before computing scale scores, first reverse score differently worded items Recode item1 (5=1) (4=2) (2=4) (1=5). Additional things you can do –Can recode multiple items Recode item1 item5 (5=1) (4=2) (2=4) (1=5). –Can use ‘to’ statement for multiple items Recode item1 to item10 (5=1) (4=2) (2=4) (1=5). –If items to be reverse scored are lined up in the data file in that order

28 After reverse scoring, then compute means of items Compute ls =mean(item1, item2, item3). –How is this different from the results you get in “descriptives” analyses and you get the mean of item1? Students do the analyses and orally explain

29 Students Compute scale scores for Global Life Satisfaction (LS) Recode Negatively worded Life Satisfaction items –How can you check you did it correctly? Compute a life Satisfaction scores by taking the mean of all items –Can only do after reverse scoring –Why not take the sum of all items? Advantages vs. disadvantages –What types of things can/should you take sums of?

30 Generalizing what you learned about computations & applying it to statistical analyses

31 Students correlate LS with specific types of satisfaction & stressors Compute reliabilities for each specific type of satisfaction & each type of stress Compute scale scores for each –Ensure you recode appropriately Correlate lifesat with each type of sat & each type of stress

32 Does a stressor in relationship, work, school affect the relevant type of satisfaction which in turn affects life satisfaction? –Do Mediator regression analyses Which type of specific satisfaction best predicts overall life satisfaction –Do Stepwise regression LS, specific types of satisfaction, Stress