SlideShare a Scribd company logo
1
Compute and Recode for SPSS Ver 20 (DR SEE KIN HAI) (PART 2)

A science teacher wanted to gauge the attitude of students towards science in rural areas of Brunei. He
wanted to know whether there is a significant difference in their attitude towards science by level of
education (i.e. Year 7, 8, 9, 10 or 11 or equivalent of Form 1,2,3,4 or 5), gender (male=1 or female=2)
and ethnic group (Malay=1, Chinese=2, Kadazan / Dusun = 3, Murut=4, Others=5). For this purpose ,
he prepared a questionnaire that consisted of 2 parts: Part A: Respondents’ demographic background,
Part B: Attitude towards science in school assessment questionnaire modified from Germann (1984).
(Likert scale: SD=1, D=2, A=3, SA=4 reverse for negative items, Missing value = 999)

(The following sample showed the response from a student)
2




You should enter into your computer as:
Id   Form Gender Race Q1 Q2 Q3 Q4 Q5             Q6    Q7 Q8 Q9 Q10      Q11 Q12 Q13   Q14

1       1      1        1    1   2   4   1   2     4    4    3   2   2    4   3    4    999

Similarly enter the data into your computer as follow and saved them in your data file disk.
3
1. Setup your [Variable View] as follow:                          Missing value




1=Malay, 2=Chinese, 3=Kadazan/Dusun        SD=1, D=2, A=3, SA=4
4= Murut, 5=Others



2. Now you enter the data as below.
4
   3. Now, the items for the questionnaire, Q2, Q7, Q10 and Q14 are negative items so the Likert
      scale should be reversed. SD =4, D= 3, A=2 and SA = 1.
   4. Now you [Recode] the negatively-worded questions into the [same variables]. If you want can
      be into [different variables].
   5. Select [Transform] in the menu bar and click [Recode into Same Variables] to open the
      dialogue box.
   6. Move [Q2, Q7, Q10 , Q14] into the [Variables] box then click [Old and New values] to open
      the sub-dialogue box.




7. Enter [1] in the [Old Value] box and [4] in the [New Value] box then [Add]. Repeat for 2 → 3,
   3 → 2 and 4 → 1.
5




   7. Click on [Continue] then [OK]. Now you examine the [Data View] below the scores have been
      reversed.




COMPUTE DATA

Now to score students’ attitude towards science, you have to add up the scores for the 14 questions.
There are 2 ways of doing this.

How to total the score for each student in this questionnaire
Method 1: (If you do not want to include the missing items, e.g. Q14)
1. Select [Transform] then [Compute Variable..] to open the dialogue box.
6




2. Type [Total] into [Target Variable] box. Move [Q1] then [+] and repeat until [Q14] then [OK].




3. Now click on [Data View], [Total] is created.
7




                  Total is added to the [Variable View]




                   Total value missing because of 999. To
                   avoid this use Method 2



Method 2: ( Use the [Function group] if you want to include the missing values, e.g. Q14)

   1. Select [Transform] then [Compute Variable..] to open the dialogue box.
8




2. Enter [Total] in the [Targer Variable] box. In the [Function group] box select [Statistical] and
[Sum] in the [Functions and Special Variables] box.

3. Click on [ ↑ ] to bring this function into [Numeric Expression] box.
9
4. Move [Q1] to [Numeric Expression] box. Repeat until [Q14] then [OK].




5. Now you examine the [Data View] below.




                             The Total added for the missing values
10
How to obtain mean score for each student in this questionnaire

Method 1: (To exclude the missing values)
1. Select [Transform] then [Compute Variable…] to open the dialogue box.
2. Type [Mean] in [Target Variable] box. Select [( )] and move [Q1] to [Q14] into
   [Numeric Expression] box then [OK] as follow.




                          Missing values not included. If you
                          want to find the mean use Method 2

Method 2: (To include missing values in the calculation of the means)

1. Select [Transform] then [Compute Variable…] to open the dialogue box.
2. Type [Mean] in the [Target Variable] then select[Statistical] and [Mean] in the [Function group]
11
3. Click [ ↑ ] and move to [Numeric Expression] box. Move [Q1] to [Q14] into the [Numeric
   Expression] box then [OK].




                     The means are calculated for the missing values
12
How to count the the total number of SD, D, A, SA coded as 1,2,3,4 for each student

1. Select [Transform] then [Count Values within Cases…] to open the dialogue box.




2. Enter [No1] in the [Target Variable] box and [Frequency of score 1] in the [Target Label] box.
   Move [Q1] to [Q14] into [Numeric Variables] box then click on [Define Values] to open the
   sub-dialogue box.




3. Click [1] in the [Value] box then [Add] to move to [Values to count] then [Continue] then [OK].
13




4. [Transform] then [Count Values within Cases..] type [No2] and [Frequency for score 2] and
   move [Q1] to [Q4] as below. [Define Values..] to open sub-dialogue box.




Type [2] in [Value] box then [Add]and [Continue], [OK].
14
5. Repeat for [No3] for [Frequency of score 3] and [No4] for [Frequency of score 4].




        Go to [Variable view ] change decimal place =0,
15
COURSEWORK

The following data were obtained from the Attitude Towards Mathematics in Upper Secondary
Questionnaire.

1. Recode the negatively-worded items, Q2, Q7, Q10, Q14 into the same Variables by reversing
   the Likert scales. (i.e. 4 → 1, 3 → 2, 2 → 3 and 1 → 4)
2. Compute the total scores of each student’s attitude from Q1 to Q14 (Use 2 methods) and also
   the total scores for all 30 students.
3. Compute the mean for each student (Use 2 methods) and the overall means.
4. Count the number of SD=1, D=2, A=3, SA=4 for each student and the overall count for the 30
   students.
5. Determine if your instrument is reliable. (Find Cronbach’s alpha and split-half reliability
   coefficients. See L15).

Id Year Gender Race Q1       Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14

1    1     1     1      1     3   4   1   2   4   1    3    2    3    4   3    4     1
2    1     1     1      2     2   2   2   1   3   2    2    2    4    3   1    3     2
3    4     2     2      3     4   3   1   3   2   3    1    3    3    2   2    2     3
4    2     2     4      3     4   3   4   1   1   3    2    2    2    1   3    1     4
5    3     999   3      2     3   2   2   3   2   3    3    2    1    2   4    2     3
6    3     1     3      3     1   3   4   2   3   2    4    2    2    3   3    3     2
7    4     2     4      1     2   4   2   1   2   1    3    1    3    4   3    4     1
8    4     2     4      4     3   2   3   1   3   3    2    2    4    3   4    4     2
9    5     1     5      2    4    1   1   2   1   2   999   4    3    2   3    4     3
10   5     1     5      3    1    2   2   3   2   3    1    3    2    1   2    2     3
11   1     1     1      1     3   4   1   2   4   1    3    2   999   4   3    4     2
12   1     1     1      2     2   2   2   1   3   2    2    2    4    3   1    3     2
13   999   2     2      3     4   3   1   3   2   3    1    3    3    2   2    2     3
14   2     2     4      3     4   3   4   1   1   3    2    2    2    1   3    1     4
15   3     999   3      2     3   2   2   3   2   3    3    2    1    2   4    2     3
16   3     1     3      3     1   3   4   2   3   2    4    2    2    3   3    3     2
17   4     2     4      1     2   4   2   1   2   1    3    1    3    4   3    4     1
18   4     2     4      4     3   2   3   1   3   3    2    2    4    3   4    4     2
19   5     1     5      2    4    1   1   2   1   2    1    4    3    2   3    4    999
20   5     1     5      3    1    2   2   3   2   3    1    3    2    1   2    2     3
21   1     1     1      1     3   4   1   2   4   1    3    2    3    4   3    4   999
22   1     1     1      2     2   2   2   1   3   2    2    2    4    3   1    3     2
23   999   2     2      3     4   3   1   3   2   3    1    3    3    2   2    2     3
24   2     2     4      3     4   3   4   1   1   3    2    2    2    1   3    1     4
25   3     999   3      2     3   2   2   3   2   3    3    2    1    2   4    2     3
26   3     1     3      3     1   3   4   2   3   2    4    2    2    3   3    3     2
27   4     2     4      1     2   4   2   1   2   1    3    1    3    4   3    4     1
28   4     2     4      4     3   2   3   1   3   3    2    2    4    3   4    4     2
29   5     1     5      2    4    1   1   2   1   2    1    4    3    2   3    4    999
30   5     1     5      3    1    2   2   3   2   3    1    3    2    1   2    2     3

More Related Content

DOC
Bina item
PDF
Me gate-15-paper-02 new2
PDF
DOCX
Manajemen pemasaran bab1
PPTX
The uses of a virtual classroom in the
PPSX
Dream playground slideshow
PPTX
Charts
Bina item
Me gate-15-paper-02 new2
Manajemen pemasaran bab1
The uses of a virtual classroom in the
Dream playground slideshow
Charts

Similar to Compute and-recode-part-2 (20)

DOC
Grade 5 NMPjdjsueiwkajnansnjfkitirieokwjejsnsjdieie
PPTX
Kaizen Concept Management and principles .pptx
PPTX
M7 Q3 1003 PS.JHCGQNXJNASJHBCHEBCJS BDCW
PDF
Discrimination index
PPTX
Algebra Foundations Series- 1.2 Order of Operations
PPTX
Math 9 Quiz Bee.pptx
PDF
NAA Maximize 2015 - Presentation on In-depth Analytics of Pricing Discovery
PDF
ISA 3.0 E-Learning Assessment Test.pdf
PDF
Mathematics Pupils Book 2 for CBC Rwanda
PPTX
Rational Numbers and Fractions Rational Numbers and Fractions .pptx
PPTX
(7) Lesson 4.2 - Compare and order Rational Numbers
PDF
ME Math 8 Q1 0204 TG.pdf Teaching Guide
PPT
Coding Concept.ppt
PPTX
INTEGER OPERATIONS for Grade 8 Mathematics
PDF
ABLE - E-Learning Symposium December 2016
PPTX
Integer Operations Quiz Presentation in Green Cream Brown Nostalgic Handdrawn...
PPTX
W1-L1 Negative-numbers-ppt..pptx
PDF
Consulting Template Slides
PPT
Blackboard training - E-assessment
DOCX
Factoring Non-Perfect Square Trinomial Lesson Plan
Grade 5 NMPjdjsueiwkajnansnjfkitirieokwjejsnsjdieie
Kaizen Concept Management and principles .pptx
M7 Q3 1003 PS.JHCGQNXJNASJHBCHEBCJS BDCW
Discrimination index
Algebra Foundations Series- 1.2 Order of Operations
Math 9 Quiz Bee.pptx
NAA Maximize 2015 - Presentation on In-depth Analytics of Pricing Discovery
ISA 3.0 E-Learning Assessment Test.pdf
Mathematics Pupils Book 2 for CBC Rwanda
Rational Numbers and Fractions Rational Numbers and Fractions .pptx
(7) Lesson 4.2 - Compare and order Rational Numbers
ME Math 8 Q1 0204 TG.pdf Teaching Guide
Coding Concept.ppt
INTEGER OPERATIONS for Grade 8 Mathematics
ABLE - E-Learning Symposium December 2016
Integer Operations Quiz Presentation in Green Cream Brown Nostalgic Handdrawn...
W1-L1 Negative-numbers-ppt..pptx
Consulting Template Slides
Blackboard training - E-assessment
Factoring Non-Perfect Square Trinomial Lesson Plan
Ad

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Lesson notes of climatology university.
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharma ospi slides which help in ospi learning
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Sports Quiz easy sports quiz sports quiz
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
2.FourierTransform-ShortQuestionswithAnswers.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Renaissance Architecture: A Journey from Faith to Humanism
102 student loan defaulters named and shamed – Is someone you know on the list?
PPH.pptx obstetrics and gynecology in nursing
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
01-Introduction-to-Information-Management.pdf
Lesson notes of climatology university.
Ad

Compute and-recode-part-2

  • 1. 1 Compute and Recode for SPSS Ver 20 (DR SEE KIN HAI) (PART 2) A science teacher wanted to gauge the attitude of students towards science in rural areas of Brunei. He wanted to know whether there is a significant difference in their attitude towards science by level of education (i.e. Year 7, 8, 9, 10 or 11 or equivalent of Form 1,2,3,4 or 5), gender (male=1 or female=2) and ethnic group (Malay=1, Chinese=2, Kadazan / Dusun = 3, Murut=4, Others=5). For this purpose , he prepared a questionnaire that consisted of 2 parts: Part A: Respondents’ demographic background, Part B: Attitude towards science in school assessment questionnaire modified from Germann (1984). (Likert scale: SD=1, D=2, A=3, SA=4 reverse for negative items, Missing value = 999) (The following sample showed the response from a student)
  • 2. 2 You should enter into your computer as: Id Form Gender Race Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 1 1 1 1 1 2 4 1 2 4 4 3 2 2 4 3 4 999 Similarly enter the data into your computer as follow and saved them in your data file disk.
  • 3. 3 1. Setup your [Variable View] as follow: Missing value 1=Malay, 2=Chinese, 3=Kadazan/Dusun SD=1, D=2, A=3, SA=4 4= Murut, 5=Others 2. Now you enter the data as below.
  • 4. 4 3. Now, the items for the questionnaire, Q2, Q7, Q10 and Q14 are negative items so the Likert scale should be reversed. SD =4, D= 3, A=2 and SA = 1. 4. Now you [Recode] the negatively-worded questions into the [same variables]. If you want can be into [different variables]. 5. Select [Transform] in the menu bar and click [Recode into Same Variables] to open the dialogue box. 6. Move [Q2, Q7, Q10 , Q14] into the [Variables] box then click [Old and New values] to open the sub-dialogue box. 7. Enter [1] in the [Old Value] box and [4] in the [New Value] box then [Add]. Repeat for 2 → 3, 3 → 2 and 4 → 1.
  • 5. 5 7. Click on [Continue] then [OK]. Now you examine the [Data View] below the scores have been reversed. COMPUTE DATA Now to score students’ attitude towards science, you have to add up the scores for the 14 questions. There are 2 ways of doing this. How to total the score for each student in this questionnaire Method 1: (If you do not want to include the missing items, e.g. Q14) 1. Select [Transform] then [Compute Variable..] to open the dialogue box.
  • 6. 6 2. Type [Total] into [Target Variable] box. Move [Q1] then [+] and repeat until [Q14] then [OK]. 3. Now click on [Data View], [Total] is created.
  • 7. 7 Total is added to the [Variable View] Total value missing because of 999. To avoid this use Method 2 Method 2: ( Use the [Function group] if you want to include the missing values, e.g. Q14) 1. Select [Transform] then [Compute Variable..] to open the dialogue box.
  • 8. 8 2. Enter [Total] in the [Targer Variable] box. In the [Function group] box select [Statistical] and [Sum] in the [Functions and Special Variables] box. 3. Click on [ ↑ ] to bring this function into [Numeric Expression] box.
  • 9. 9 4. Move [Q1] to [Numeric Expression] box. Repeat until [Q14] then [OK]. 5. Now you examine the [Data View] below. The Total added for the missing values
  • 10. 10 How to obtain mean score for each student in this questionnaire Method 1: (To exclude the missing values) 1. Select [Transform] then [Compute Variable…] to open the dialogue box. 2. Type [Mean] in [Target Variable] box. Select [( )] and move [Q1] to [Q14] into [Numeric Expression] box then [OK] as follow. Missing values not included. If you want to find the mean use Method 2 Method 2: (To include missing values in the calculation of the means) 1. Select [Transform] then [Compute Variable…] to open the dialogue box. 2. Type [Mean] in the [Target Variable] then select[Statistical] and [Mean] in the [Function group]
  • 11. 11 3. Click [ ↑ ] and move to [Numeric Expression] box. Move [Q1] to [Q14] into the [Numeric Expression] box then [OK]. The means are calculated for the missing values
  • 12. 12 How to count the the total number of SD, D, A, SA coded as 1,2,3,4 for each student 1. Select [Transform] then [Count Values within Cases…] to open the dialogue box. 2. Enter [No1] in the [Target Variable] box and [Frequency of score 1] in the [Target Label] box. Move [Q1] to [Q14] into [Numeric Variables] box then click on [Define Values] to open the sub-dialogue box. 3. Click [1] in the [Value] box then [Add] to move to [Values to count] then [Continue] then [OK].
  • 13. 13 4. [Transform] then [Count Values within Cases..] type [No2] and [Frequency for score 2] and move [Q1] to [Q4] as below. [Define Values..] to open sub-dialogue box. Type [2] in [Value] box then [Add]and [Continue], [OK].
  • 14. 14 5. Repeat for [No3] for [Frequency of score 3] and [No4] for [Frequency of score 4]. Go to [Variable view ] change decimal place =0,
  • 15. 15 COURSEWORK The following data were obtained from the Attitude Towards Mathematics in Upper Secondary Questionnaire. 1. Recode the negatively-worded items, Q2, Q7, Q10, Q14 into the same Variables by reversing the Likert scales. (i.e. 4 → 1, 3 → 2, 2 → 3 and 1 → 4) 2. Compute the total scores of each student’s attitude from Q1 to Q14 (Use 2 methods) and also the total scores for all 30 students. 3. Compute the mean for each student (Use 2 methods) and the overall means. 4. Count the number of SD=1, D=2, A=3, SA=4 for each student and the overall count for the 30 students. 5. Determine if your instrument is reliable. (Find Cronbach’s alpha and split-half reliability coefficients. See L15). Id Year Gender Race Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 1 1 1 1 1 3 4 1 2 4 1 3 2 3 4 3 4 1 2 1 1 1 2 2 2 2 1 3 2 2 2 4 3 1 3 2 3 4 2 2 3 4 3 1 3 2 3 1 3 3 2 2 2 3 4 2 2 4 3 4 3 4 1 1 3 2 2 2 1 3 1 4 5 3 999 3 2 3 2 2 3 2 3 3 2 1 2 4 2 3 6 3 1 3 3 1 3 4 2 3 2 4 2 2 3 3 3 2 7 4 2 4 1 2 4 2 1 2 1 3 1 3 4 3 4 1 8 4 2 4 4 3 2 3 1 3 3 2 2 4 3 4 4 2 9 5 1 5 2 4 1 1 2 1 2 999 4 3 2 3 4 3 10 5 1 5 3 1 2 2 3 2 3 1 3 2 1 2 2 3 11 1 1 1 1 3 4 1 2 4 1 3 2 999 4 3 4 2 12 1 1 1 2 2 2 2 1 3 2 2 2 4 3 1 3 2 13 999 2 2 3 4 3 1 3 2 3 1 3 3 2 2 2 3 14 2 2 4 3 4 3 4 1 1 3 2 2 2 1 3 1 4 15 3 999 3 2 3 2 2 3 2 3 3 2 1 2 4 2 3 16 3 1 3 3 1 3 4 2 3 2 4 2 2 3 3 3 2 17 4 2 4 1 2 4 2 1 2 1 3 1 3 4 3 4 1 18 4 2 4 4 3 2 3 1 3 3 2 2 4 3 4 4 2 19 5 1 5 2 4 1 1 2 1 2 1 4 3 2 3 4 999 20 5 1 5 3 1 2 2 3 2 3 1 3 2 1 2 2 3 21 1 1 1 1 3 4 1 2 4 1 3 2 3 4 3 4 999 22 1 1 1 2 2 2 2 1 3 2 2 2 4 3 1 3 2 23 999 2 2 3 4 3 1 3 2 3 1 3 3 2 2 2 3 24 2 2 4 3 4 3 4 1 1 3 2 2 2 1 3 1 4 25 3 999 3 2 3 2 2 3 2 3 3 2 1 2 4 2 3 26 3 1 3 3 1 3 4 2 3 2 4 2 2 3 3 3 2 27 4 2 4 1 2 4 2 1 2 1 3 1 3 4 3 4 1 28 4 2 4 4 3 2 3 1 3 3 2 2 4 3 4 4 2 29 5 1 5 2 4 1 1 2 1 2 1 4 3 2 3 4 999 30 5 1 5 3 1 2 2 3 2 3 1 3 2 1 2 2 3