Saturday, 14 January 2017

MODULE 5: SAMPLE QUESTION 2 SOLVED

SAMPLE QUESTION 2
Imagine you are interested in looking at the differences between lecturers and students. You took a random sample of five Economics lecturers from the University of Lagos and five Economics students and then measured how many friends they had, their weekly alcohol consumption (in units), their yearly income and how neurotic they were (higher score is more neurotic). Enter the data in SPSS. These data are in Table 5.1:
Table 5.1
Name
Birth Date
Job
No. of Friends
Alcohol(units)
Income
Neurotic ism
Tayo
15-Feb-1960
Lecturer
    5
10
20,000
10
Abayomi
24-June 1945
Lecturer
    2
15
40,000
17
Johnson
15-Jul-1984
Lecturer
    0
20
35,000
14
Trust
5- Nov- 1988
Lecturer
    4
5
22,000
13
Wale
21-Jun-1973
Lecturer
    1
30
50,000
21
Chinedu
5-Nov-1983
Student
   10
25
5,000
7
Lois
8-Sep-1989
Student
   12
20
100
13
Gift
20-May-1996
Student
   15
16
3,000
9
Leo
11-Nov-2000
Student
   12
17
10,000
14
Remy
15-Jul.-2001
Student
  17
18
10
13

PROCEDURES

Step 1: Open the SPSS, click the variable view.
Step 2: In the variable view window, under name type ‘Name’ as shown in figure 5.1.  you just created your first variable! Notice that once you have typed a name, SPSS creates default settings for the variable (such as assuming it’s numeric and assigning 2 decimal places). But we want to enter names of people, so will would change it to string.
                                                           Fig. 5.1
Step 3: Click the ‘type’ to change to string, when you click it, fig. 5.2 will display then click ‘string’ as shown in fig. 5.3 and ok. SPSS set the width as 8, so leave it since none of the name will want to enter have more than 8 characters.


                                                            Fig. 5.2
                                    Fig. 5.3
Step 4: Enter detail information of the variable ‘Name’, we can simply write ‘participant’s first Name’ in the column for label as shown in fig. 5.4
                                                           Fig. 5.4
Step 5: Specify the level of measurement. In this case, the level of measurement is nominal as explained in module 4.
Step 6: Move to data view and enter the names of the participant in the column of ‘Name’ as shown in Fig. 5.5.

Fig. 5.5

Step 7: Click the variable view and type ‘Birth_Date’ in the second row as shown in fig. 5.6, and change the type to ‘Date’. as shown in fig. 5.7


Fig. 5.6
Fig. 5.7

Step 8: Click the data view and enter the date of birth of each participants as shown in fig. 5.8
                                                          Fig. 5.8
Step 9: Enter the variable ‘Job’ in the variable view, you can make a representation for simplicity, you can represent ‘Lecturer’ as 1 and ‘student’ as 2. As shown in figure. 5.9
Fig. 5.9
Step 10: Save your data, press ‘ctrl s’ and fig. 5.10 will be display, then enter the name you want to name it and click save.
Fig. 5.10
Self-Test: Having created the first Three variables with a bit of guidance, try to enter the rest of the variables in Table 5.1 yourself.

SPSS BASIC OPERATOR
SPSS basic operator are mainly used with IF, DO IF and COMPUTE. They work mostly as you would expect but they do have a couple of surprises in store. it will be discussed in detail later.

That is how we come to the end of week 1, please ensure you attempt the quiz and feel free to ask any question. Next week we are moving to chi-square. so watch out and get prepared









No comments:

Post a Comment