Quản lý dữ liệu bằng SPSS
Lecture 4: Database Management & SPSS Practices 4-1 Contents • SPSS interface: Data and Variables • Data entering in SPSS • Data import from excel & other programs • Data cleaning, Variable modification • Data filtering • Descriptive statistics • Regression 4-2 SPSS Interfaces • Data entering window: – Column: variables – Raw: Observations • Variables window: – Variable creation – List of variables – Variable defines 4-3 Data Entering into SPSS • Code book & data entering guidance • Assign each observation (interviewee/questionnaire…) and ID • If it is an online survey, we need to define each observation • We can enter data using Excel 4-4 Data coding: an example 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 4-5 4-6 Nhập số liệu vào SPSS Column: Variables Raw: observation Data window Variable window 4-7 Variables Define Variable description Varialbe name Type of variable: numerical, string Click here 4-8 Variables Define Data window 4-9 Observation Entering There are variables in the dataset Variables: “Code” & “Q01” Variable “Code” is an ID of a specific observation Variable “Q01” is a age variable: = or < 12 years old; = 13; = 14 years old… Open this window 10 - 10 Basic Statistics Analysis • Comparing “means” - 31 Basic Statistics Analysis • Comparing “means”: - 32 Basic Statistics Analysis • Comparing “means”: - 33 Basic Statistics Analysis • Comparing “means”: - 34 Basic Statistics Analysis • Comparing “means”: - 35 Basic Statistics Analysis • Comparing “means”: - 36 Basic Statistics Analysis • Comparing “means”: - 37 Basic Statistics Analysis • Correlation analysis: Analyze->Correlate -> Bivariate - 38 Basic Statistics Analysis • Correlation analysis: Analyze->Correlate -> Bivariate - 39 Basic Statistics Analysis • Correlation analysis: Analyze->Correlate -> Bivariate - 40 Regression Analysis • Analyze->Regression -> Linear - 41 Regression Analysis • Select variables: © 2011 Pearson Education, Inc publishing as Prentice Hall - 42 Regression Analysis © 2011 Pearson Education, Inc publishing as Prentice Hall - 43 Regression Analysis © 2011 Pearson Education, Inc publishing as Prentice Hall - 44 Regression Analysis © 2011 Pearson Education, Inc publishing as Prentice Hall - 45 ... Anlyze/Descriptive Stastis/ Descriptives 14 - 14 Data Cleaning - 15 - 16 Data Cleaning * Data cleaning: Frequency Table - 17 - 18 Data Cleaning => Cleaning data: In data_ view window: Choose/highlight... value (e.g 20) - 19 Data Cleaning Wrongly data entering 20 - 20 “Compute” new Variables - 21 “Compute” new Variables - 22 Sorting & Selecting observations • Sorting data: Data • Sorting data can be... for each response option 3.How to recode variables 4- 5 4- 6 Nhập số liệu vào SPSS Column: Variables Raw: observation Data window Variable window 4- 7 Variables Define Variable description Varialbe