Professional Documents
Culture Documents
BIO-STATISTICS AND
DATA ANALYSIS USING
SPSS
AYESHA USMANI
BIO-STATISTICIAN
Mathematical
Applied Statistics
Statistics
• Level of measurement of data guides us how to summarize and present the data.
• It also determines the statistical test that should be performed.
• SPSS uses three levels of measurements.
1. Nominal (categorical variables)
2. Ordinal (categories with ranking or order)
3. Scale (quantitative/numerical variables)
10
SPSS
STATISTICAL PACKAGE FOR SOCIAL SCIENCES
12 SPSS: HISTORY
• SPSS was initially developed a long time ago in the dark ages of computing in late
60’s.
• Norman H. Nie, Dale H. Bent, and Hadlai Hull developed this software in 1968.
• In 1975, SPSS officially became an independent company.
• In 2009, IBM acquired SPSS.
• 2010, new official name is now IBM SPSS Statistics and is part of IBM’s analytics
portfolio.
13 GENERAL CAPABILITIES
• In the variable view, we can adjust the variables under different categories like
name, type, label, value etc.
• Each variable name MUST be unique. Duplication is not allowed.
• Variable name should NOT start with a number or special character.
• The underscore, period, and characters $, #, @ can be used within variable
names.
• An error message is given if variable name is in illegal format.
Visit www.ibm.com for more details.
16
• The main task is to decide about the appropriate statistical technique to analyze
the data in a study.
• Either we are going to plot charts, descriptive measures, or testing some
hypothesis.
• This decision depends on:
1. What do we want to do?
2. What is the objective of our study?
3. What is the data nature?
21 CONTI…
BASIC STATISTICAL
TESTS
NOW WE CONSIDER SOME BASIC TESTS TO ANALYZE THE DATA
25 SOME BASIC STEPS
• Independent variable is Treatment with two categorical groups i.e talk and
exercise
• Dependent variable is Anxiety_Level measured on numerical scale.
• While entering the data in SPSS, we need three columns i.e for the ID, Treatment
and for the Anxiety_Level.
• So, there will be 3 columns and 24 rows in our data view.
• Here are the variables and data look in SPSS (add the variable Treatment in the
previous data file).
30 To run the t-test in SPSS, we will use the options in the following manner
Analyze > Compare Means > Independent Samples t-test
31 Transfer the dependent variable “Anxiety_Level” into Test variable box.
Transfer the independent variable “Treatment” into Grouping variable box and
Define Groups.
32 Define Groups by entering the values that are used in defining variables. Here, enter
“0” into Group 1 box and “1” into Group 2 box and Continue.
33 T-TEST: INDEPENDENT SAMPLES
REPORTING THE OUTPUT
• SPSS Statistics generates two main tables of the output for independent t-test.
• The output will be reported in the following manner:
• So, we conclude that the exercise program didn’t worked well to reduce the
anxiety level of the participants.
39 CHI-SQUARE TEST FOR ASSOCIATION
• For this test, the data can be entered in two ways in SPSS.
1. Enter the raw data.
It means that every row of the data editor represents each subject/item about
which we have data. For example, we have data about 200 patients, there will be
200 rows of data in data editor.
2. Enter the weight cases.
We input the frequency data i.e. the number of cases falling in each category.
42 CHI-SQUARE TEST FOR ASSOCIATION
EXAMPLE
• A principal wants to improve the data analysis skills of his research students. He
employs an external agency which provides training in software. They offer four
course, beginner, intermediate, advanced, and professional. He is unsure which
course is needed for the students. So, he sends 4 students in each course. When
they all return from the training, he gives them a problem to solve and the
solution time taken by every student is recorded in minutes. He then compares
the four courses.
52 ANALYSIS OF VARIANCE
DATA ENTRY
The average time taken by the students to solve the problem was
significantly different for four courses, F(3, 12) = 5.563, p < 0.05.
The post hoc Tukey’s test revealed that Professional course is
significantly different from all other three courses.