Title: Analysing the results of a simple questionnaire using SPSS
1Analysing the results of a simple questionnaire
using SPSS
Dr. Phil RoweReader in Pharmaceutical
Computing Liverpool School of Pharmacy
2Review this presentation at
http//www.staff.livjm.ac.uk/phaprowe
3Questionnaire -data collected
Questionnaire number Gender Branch of profession
(Community/Hospital) Q1 Q2 Q3 Q4
Four questions designed to test knowledge in a
certain area - record as correct/incorrect
4Numbering questionnaires
Number the questionnaires sequentially as
returned. If there is a query about a reply, you
can easily find the relevant questionnaire
5Package for questionnaire analysis -
SPSS(Statistical Package for the Social Sciences)
- Data recording and analysis package. Similar to
Minitab - Data sheet analysis tools
- Oriented to questionnaire analysis
- Why bother?
- More powerful than Minitab
- Useful extra skill for C.V.
6Types of data used in SPSS
- Numeric - A number - Specify how many decimal
places - String - A piece of text - Specify how many
characters
7Variables to be used to store the data
Questionnaire number Numeric - no
decimals Gender String - 1 character
(m/f) Branch of profession (Com/Hosp) String - 1
character (c/h) Q1 Numeric - no decimals
(0/1)
0 Incorrect 1
Correct Q2 Numeric - no decimals
(0/1) Q3 Numeric - no decimals
(0/1) Q4 Numeric - no decimals
(0/1) Score Numeric - no decimals (0-4)
8Summary values
A set of questions with a similar purpose. Often
better to create a single summary value rather
than simply looking at each question. If find an
effect can always explore the individual
questions afterwards.
9Stage 1Get the data into SPSS
10Launching SPSS
JMU Applications/Analysis Tools/SPSS v10
11Initial appearance
A "helpful" initial menu is presented. Pain in
the neck Press Cancel
12Initial appearance
Each row represents one completed
questionnaireEach column represents one variable
See data stored - (None currently)
See details of each variable
13Creating a numeric variable with no decimal places
This view allows us to create all the variables
that we need to hold the data. First variable to
create is for the questionnaire number.
(qnr_no) We will use a numeric variable with no
decimal places
Have switched to Variable View
14Creating a numeric variable with no decimal places
Type in title and press ltReturngt Other details
appear by default. 'Numeric' is OK, but we do
not need the 2 decimal places.
15Creating a numeric variable with no decimal places
Click in cell
Use down arrow to reduce to zero and press
ltReturngt
16Creating a numeric variable with no decimal places
First column (variable) now set up to store the
questionnaire numbers.
Have switched back to Data View
17Creating a string variable with just one character
Enter name as "gender", press ltretgt Appears as
Numeric. Click here to allow a change to be made
18Creating a string variable with just one character
Change to String with 1 character
19Creating a string variable with just one character
Two variables now available
Back in data view
20All variables created
21Enter the data
22Calculating a variable (1)
Go to Transform/Compute
23Calculating a variable (2)
Variable to be calculated
Formula for variable
24Calculating a variable (3)
Confirm OK
25Calculating a variable (4)
Scores are calculated
26Stage 2Producing simple frequencies
27Frequencies (1)
Go to Analyse/Descriptives/Frequencies
28Frequencies (2)
Variable to be selected
Click on first variable to be selected Click on
the right-pointing arrow Variable moves over to
right-hand box Click on next variable and
transfer it, etc
Button to select variable
29Frequencies (3)
All relevant variables transferred across
30Removing a variable
- If a variable is incorrectly transferred into the
right-hand box it can be removed - Click on the variable in the right-hand box to
highlight it - The right pointing arrow will become a left
pointing arrow - Click on left pointing arrow
- Variable will be transferred back to the
left-hand box.
31Appearance of the "Output" window
32Output from Frequencies procedure (1)
All Missing values are 0. Confirms that that a
value has been entered for all variables for all
20 subjects
33Output from Frequencies procedure (2)
Numbers of Males and Females
34Output from Frequencies procedure (3)
Numbers of Community Hospital
35Output from Frequencies procedure (4)
Numbers who got Q1 wrong (0) or right
(1) Similar tables are produced for Q2, 3 4.
36Output from Frequencies procedure (5)
Numbers of individuals with overall scores of 0,
1, 2, 3 or 4
37Switching back to the data sheet
Window - Select Data Editor
38Stage 3Hypothesis testing
- Is the balance of male and female the same in
community and hospital? - Is the level of knowledge the same in community
and hospital?
39Is the balance of male and female the same in
community and hospital?(Using Cross-tabulation
plus Chi-square test)
- Use menus Analyze / Descriptive Statistics /
Crosstabs - Highlight Gender and transfer it to the Rows
box - Highlight Wrk and transfer it to the Columns
box - Click the Statistics button
- Select Chi-square
40Data is OK. No missing values
416 females in community etc
P value from chi-square test. Non-significant
Yates corrected
42Conclusion
There is no evidence of any difference between
community and hospital employment in the
proportions of males and females.
43Is the level of knowledge the same in community
and hospital?(Using a t-test)
- Use menus Analyze / Compare Means /
Independent-Samples T Test - Need to tell SPSS which column contains the data
to be analysed (Test Variable) and which
contains the codes for the two groups that are
being compared ('Grouping Variable) - Highlight score and transfer to Test
Variable box - Highlight wrk and transfer to Grouping
Variable box - Continued on next slide ...
44Is the level of knowledge the same in community
and hospital?(Using a t-test) Continued
- Now need to tell SPSS that you want to compare
hospital versus community. (There might be more
than two different codes in the wrk column.) - Click Define Groups button
- Fill in Group 1 as c
- Fill in Group 2 as h
45Mean score is higher for Hospital than Community
P lt 0.05 Difference is significant
46Conclusion
There is significant evidence that hospital
pharmacists have greater knowledge of this
particular area than community pharmacists. (Coul
d now look at each question to see whether the
difference in knowledge extends over all
questions or only applies to 1 or 2 questions.
Do cross-tabulation chi-square test for each
question separately.)
47Saving the data
File/SaveAs
48Opening a data file
If you use the 'Open file' symbol there are no
complications. If you use the Menu bar
(File/Open), you will have to select file type as
'Data'.