By Hui Bian Office for Faculty Excellence Spring 2011 1.

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Repaso: Unidad 1 Lección 2
Chapter 4 Sampling Distributions and Data Descriptions.
Module 3: Block 3 Call Management
AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Objectives: Generate and describe sequences. Vocabulary:
We need a common denominator to add these fractions.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Create an Application Title 1A - Adult Chapter 3.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Lecture 7 THE NORMAL AND STANDARD NORMAL DISTRIBUTIONS
PUBLIC KEY CRYPTOSYSTEMS Symmetric Cryptosystems 6/05/2014 | pag. 2.
Rhesy S.ppt proRheo GmbH
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Dr. Engr. Sami ur Rahman Data Analysis Lecture 6: SPSS.
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
1 1 Slide © 2003 South-Western/Thomson Learning TM Slides Prepared by JOHN S. LOUCKS St. Edwards University.
Break Time Remaining 10:00.
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
Microsoft Access.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
A bar chart of a quantitative variable with only a few categories (called a discrete variable) communicates the relative number of subjects with each of.
Benchmark Series Microsoft Excel 2013 Level 2
Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1 Section 5.5 Dividing Polynomials Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1.
Sample Service Screenshots Enterprise Cloud Service 11.3.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
GIS Lecture 8 Spatial Data Processing.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Adding Up In Chunks.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Note to the teacher: Was 28. A. to B. you C. said D. on Note to the teacher: Make this slide correct answer be C and sound to be “said”. to said you on.
Subtraction: Adding UP
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
Types of selection structures
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
1 Interpreting a Model in which the slopes are allowed to differ across groups Suppose Y is regressed on X1, Dummy1 (an indicator variable for group membership),
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 2Advanced Reports, Access Tools, and Customizing Access Chapter 8Integrating Access Data.
Page 1 Orchard Harvest ™ LIS Find a Patient Training.
4/4/2015Slide 1 SOLVING THE PROBLEM A one-sample t-test of a population mean requires that the variable be quantitative. A one-sample test of a population.
SPSS Series 1: ANOVA and Factorial ANOVA
Introduction to the SPSS Interface
By A.Arul Xavier Department of mathematics
Introduction to the SPSS Interface
Presentation transcript:

By Hui Bian Office for Faculty Excellence Spring

SPSS interface: data view and variable view How to enter data in SPSS How to import external data into SPSS How to clean and edit data How to transform variables How to sort and select cases How to get descriptive statistics 2

We use 2009 Youth Risk Behavior Surveillance System (YRBSS, CDC) as an example. YRBSS monitors priority health-risk behaviors and the prevalence of obesity and asthma among youth and young adults. The target population is high school students Multiple health behaviors include drinking, smoking, exercise, eating habits, etc. 3

Data view The place to enter data Columns: variables Rows: records Variable view The place to enter variables List of all variables Characteristics of all variables 4

You need a code book/scoring guide You give ID number for each case (NOT real identification numbers of your subjects) if you use paper survey. If you use online survey, you need something to identify your cases. You also can use Excel to do data entry. 5

6 A code book is about how you code your variables. What are in code book? 1.Variable names 2.Values for each response option 3.How to recode variables

Columns: variables Rows: cases Under Data View 7

1. Click this Window 1.Click Variable View 2.Type variable name under Name column (e.g. Q01). NOTE: Variable name can be 64 bytes long, and the first character must be a letter or one of the #, or $. 3.Type: Numeric, string, etc. 4.Label: description of variables. 2. Type variable name 3. Type: numeric or string 4. Description of variable 8

Based on your code book! 9

Under Data View 1.Two variables in the data set. 2.They are: Code and Q01. 3.Code is an ID variable, used to identify individual case (NOT people’s real IDs). 4.Q01 is about participants’ ages: 1 = 12 years or younger, 2 = 13 years, 3 = 14 years… 10

Select File Open Data Choose Excel as file type Select the file you want to import Then click Open 11

12

CVS is a comma-separated values file. If you use Qualtrics to collect data (online survey), you will get a CVS data file. Select File Open Data Choose All files as file type Select the file you want to import Then click Open 13

14

15

16

17

18

19

20 Save this file as SPSS data

Key in values and labels for each variable Run frequency for each variable Check outputs to see if you have variables with wrong values. Check missing values and physical surveys if you use paper surveys, and make sure they are real missing. Sometimes, you need to recode string variables into numeric variables 21

Wrong entries 22

Recode variables 1.Select Transform Recode into Different Variables 2.Select variable that you want to transform (e.g. Q20): we want 1= Yes and 0 = No 3.Click Arrow button to put your variable into the right window 4.Under Output Variable: type name for new variable and label, then click Change 5.Click Old and New Values 23

6. Type 1 under Old Value and 1 under New Value, click Add. Then type 2 under Old Value, and 0 under New Value, click Add. 7. Click Continue after finish all the changes. 8. Click Ok 24

Compute variable (use YRBSS 2009 data) Example 1. Create a new variable: drug_use (During the past 30 days, any use of cigarettes, alcohol, and marijuana is defined as use, else as non-use). There are two categories for the new variable (use vs. non-use). Coding: 1= Use and 0 = Non-use 1. Use Q30, Q41, and Q47 from 2009 YRBSS survey 2. Non-users means those who answered 0 days/times to all three questions. 3. Go to Transform Compute Variable 25

4. Type “drug_use” under Target Variable 5. Type “0” under Numeric Expression. 0 means Non-use 6. Click If button. 26

7. With help of that Arrow button, type Q30= 1 & Q41 = 1 & Q47= 1 then click Continue 8. Do the same thing for Use, but the numeric expression is different: Q30> 1 | Q41> 1 | Q47>1 AND OR 27

9. Click OK 10. After click OK, a small window asks if you want to change existing variable because drug_use was already created when you first define non-use. 11. Click ok. 28

Compute variables Example 2. Create a new variable drug_N that assesses total number of drugs that adolescents used during the last 30 days. 1. Use Q30 (cigarettes), 41 (alcohol), 47 (marijuana), and 50 (cocaine). The number of drugs used should be between 0 and First, recode all four variables into two categories: 0 = non-use (0 days), 1 = use (at least 1 day/time) 3. Four variables have 6 or 7 categories 29

4. Recode four variables: 1 (old) = 0 (new), 2-6/7 (old) = 1 (New). 5. Then select Transform Compute Variable 30

6. Type drug_N under Target Variable 7. Numeric Expression: SUM (Q30r,Q41r,Q47r,Q50r) 8. Click OK 31

Compute variables Example 3: Convert string variable into numeric variable 32 1.Enter 1 at Numeric Expression. 2.Click If button and type Q2 = ‘Female’ 3.Then click Ok. 4.Enter 2 at Numeric Expression. 5.Click If button and type Q2 = ‘Male’ 6.Then click Ok

Sort cases by variables: Data Sort Cases You can use Sort Cases to find missing. 33

Select cases Example 1. Select Females for analysis. 1. Go to Data Select Cases 2. Under Select: check the second one 3. Click If button 34

4. Q2 (gender) = 1, 1 means Female 5. Click Continue 6. Click Ok Unselected cases : Q2 = 2 35

7. You will see a new variable: filter_$ (Variable view) 36

Select cases Example 2. Select cases who used any of cigarettes, alcohol, and marijuana during the last 30 days. 1. Data Select Cases 2. Click If button 3. Type Q30 > 1 | Q41 > 1 | Q47 > 1, click Continue 37

Descriptive statistics Purposes: 1. Find wrong entries 2. Have basic knowledge about the sample and targeted variables in a study 3. Summarize data Analyze Descriptive statistics Frequency 38

39

40

1. Skewness: a measure of the asymmetry of a distribution. The normal distribution is symmetric and has a skewness value of zero. Positive skewness: a long right tail. Negative skewness: a long left tail. Departure from symmetry : a skewness value more than twice its standard error. 2. Kurtosis: A measure of the extent to which observations cluster around a central point. For a normal distribution, the value of the kurtosis statistic is zero. Leptokurtic data values are more peaked, whereas platykurtic data values are flatter and more dispersed along the X axis. 41 Normal Curve

42