Beruflich Dokumente
Kultur Dokumente
page
3-1
SESSION 3: Designing a simple questionnaire in SPSS and
SPSS Data Entry
From the Start Menu at the bottom of your desktop click on Programs ¾
SPSS Data Entry ¾ SPSS Data Entry Builder. The following screens are
opened.
Design Form
Details Form
In the Design Form you can build the questionnaire and you can change the
design and the layout.
In the Details Form, you can store the details of each question, the values
assigned to each answer, the rules, etc.
You can also get a toolbox which is what you would used to add questions to
your form design.
3-2
This is the pointer. Use this to select objects on your form.
You cannot save a new project until you have entered some questions, so
let’s start building a questionnaire in the blank form we’ve been given (Form
1).
Adding a title
For this session, I will try to reproduce a simple questionnaire on the SPSS
Data Entry Builder.
The 1st thing that you are likely to do in a new questionnaire is write the title of
the questionnaire.
Click on the text tool . You will see that the cursor changes to ‘A’. Place
the cursor on the form where you want the left-hand top of your title box to be,
and drag the cursor to create the entire box.
3-3
This creates a text
box in your form
You might have noticed that besides the toolbox and the 2 forms that have
opened automatically, SPSS Data Entry Builder has also opened the
Properties Form.
Default properties
properties
Editable
Every item that you add on the design form will have properties linked to it.
These properties will differ depending on the type of item that is being added.
We can modify the right hand part of the properties with new values. So if we
wanted to add a title ‘Phone Poll’ just click on the Text Field, and replace the
right hand side with Phone Poll as shown.
3-4
You will see that the design form is updated automatically.
This gives you the default style for your text, but you might want to change the
font, size or colour of your text.
You can change the way your text looks by using the Properties Form.
3-5
You can then drag and drop the sides of the box until you get the text in the
middle as shown here.
Adding Questions
We will try to reproduce some parts of the questionnaire, which you will
complete during the practical session.
Sex of Respondent
This is a multiple choice type question – there are only 2 options available,
and each respondent will select only one of the choices. Since there are few
options available, we will select an open button style question.
3-6
You will notice that you have an option of selecting the number of choices that
you will have, as well as the design.
For this example, I will choose the 2x1 option. If you move the cursor on your
form, you will see that it has changed to a . symbol. Place the cursor on the
form where you want the left-hand top of your question box to be, and drag
the cursor to form the entire box.
You can select the question or the response individually and change the text
or its properties as you did with the title. So after modifying the text, the
questionnaire now looks like this.
3-7
An important feature present in SPSS Data Entry Builder is the Variable
Properties form. To obtain this, choose any one variable in the open button
box, and right click on it. This will open the short cut menu. Click on Variable
Properties in this menu.
This will give you the Variable Properties form. Note that it has tabs across
the top, enabling you to edit different aspects of the variable.
3-8
always suggest to give suitable names to your variable names. The label is
Gender.
The default value is the value provided to the variable by default. In this case
this value determines the default state of the option button. At the moment it
will be left blank.
If you click on the values tab, you will get the following.
This is a list of all the options that we have for the question. Press Close.
Age of Respondent
The variable is going to be a simple box in which the respondent can enter
their age (in years).
From the toolbar, click on the text question tool, . Move the cursor on to
your form and you will see that it has changed to ‘ab|’ symbol. As before,
place the cursor on the form where you want the left-hand top of your
question to be and drag the cursor to form the entire box.
3-9
Modify the question properties by using the Properties form. Your form
should now look like the one below.
Voting Party
We will use check boxes to represent the political parties and we therefore
need 3 check boxes for this question.
Move your cursor over the check box tool on the toolbar , but remember to
change the setting to 3x1 check boxes. Move the cursor over your form.
Click where you want the top left of the question box to go and you should get
the default definition for this question.
3-10
We now need to edit this question, so use the Variable Properties dialogue
as before.
If you want that SPSS Data Entry Builder wraps the text in the question, make
sure that you change AutoWrap to True in the Properties Form.
3-11
The question should look as follows:
At the moment, it is only showing that we have a Form, where we have stored
all information. However, we can see all variables that we have created. If
you click on , you would obtain a detailed list of all the variables present in
your form. Next to every variable name, you will be given the label as well as
the type (string, numeric, etc.) of the variable. You can see now why it makes
more sense to give every variable a suitable variable name.
We have now completed the 1st simple questionnaire. The screen should look
like this.
3-12
When you are happy with the format of the design, save the survey by clicking
on File ¾ Save As…. You can call the file politics.sav. Note that this file
has the same extension as an SPSS data file.
Once you have created the survey, the next stage is to start inputting the
data.
To enter data, you need to be viewing either form entry or table entry. We
will use form entry.
3-13
Click on View¾ Form Entry. Once you are viewing the Form Entry, you can
enter data by selecting the buttons or click boxes, and by entering ‘Age’ in the
correct box.
First Case
Previous Case
Next Case Last Case Add new case
3-14
Click on the Add New Case button , to enter the details of the next
respondent.
When you have entered the details for all 10 respondents, you have to save
your data so that we are able to read this from SPSS. This is done by clicking
on File¾ Save, to save the questionnaire along with the data.
Secondly, we also want to export this data so that we can use SPSS to
produce graphs and tables. Click on File¾ Export Data.
Call this new file something different, otherwise the data will overwrite the
questionnaire design.
The data exported from SPSS Data Entry can easily be read by SPSS. Open
SPSS and load the data file eg1data.sav.
Your data should appear in the SPSS Data Editor window as follows:
3-15
Look at the variable names. If we had changed them to a more meaningful
name in SPSS Data Entry Builder, then we would have some information
regarding the variable. Therefore, spend some time modifying the variable
names, and value labels by clicking on the Variable View tab at the bottom of
the sheet.
• Click on individual
variable names to
change them (for
example change
var00004 to sex and
var00011 to age.
3-16
If you go back to Data View, and click on the label tool, on the toolbar at
the top of the window, you will be able to see the labels that you have just
defined in your data.
3-17
To produce a frequency table for the gender, click on Analyze¾ Descriptive
Statistics.
Highlight the
variable Gender
(sex) and move it to
the Variables box.
Click on OK.
3-18
To produce frequency counts for the voting preference according to gender,
we need to use cross-tabulation. Click on Analyze¾ Descriptive Statistics
¾ Crosstabs.
Click on OK.
In the output window, you will then get a table for each of the voting
preference split by the gender of the respondent.
3-19
Suppose we wanted to obtain a bar chart showing how many males/females
voted (or did not vote) Conservative. Click on Graphs¾ Bar¾ Clustered¾
Define.
• Select the
conservative
variable from the
list on the left and
put it in the
Category Axis
box.
Click on OK.
3.5
.5 Female
no yes
Conservative
What we may want to do is to produce a bar chart that has a simple bar for
the number of males/females and their political preference.
3-20
• Select gender and
again put it in the
Category Axis box.
• Now select all 3 voting
preference and put
them in the Bars
Represent: box.
• Click on Continue to get back to the previous dialogue box, and then OK
to produce the chart.
3-21
120
100
80
60
40
Labour
20
Conservative
% > .5
0 Lib/Dem
Male Female
Gender
The titles could perhaps do with changing and the scale altering. Double click
on the chart to put the chart in editing mode.
Practical Session 3
1. Open a new SPSS Data Entry Builder and enter the questionnaire with
suitable formatting. Save the questionnaire as politics.sav.
1. There is to be a general election in June for a new government. Did you know
about it?
YES/NO/DON’T KNOW
2. Do you think that the current government made a difference to you and your
family?
YES/NO/DON’T KNOW
VERY LIKELY
FAIRLY LIKELY
UNSURE
FAIRLY UNLIKELY
VERY UNLIKELY
3-22
4. Which Party did you vote for in the past? Labour
Conservative
Lib/Dem
Other
Varies
Don’t know
Don’t vote
3. Save the questionnaire and export the data to SPSS for Windows.
3-23