Second Session For Practical Biostatistics For Postgradutes
Second Session For Practical Biostatistics For Postgradutes
SPSS
Dr. Mohammed Al- Wesabi
BDS, MPH, MDSc
Objectives
At the end of this session participants should be
able to:
Click
Variable View window
This sheet contains information about the data set that is stored
with the dataset.
Name
The first character of the variable name must be alphabetic
Variable names must be unique, and have to be less than 64
characters.
Spaces are NOT allowed.
Defining Variables
Defining a variable includes giving it a name, specifying
its type, the values the variable can take (e.g., 1, 2, 3), etc.
Without this information, your data will be much harder to
understand and use. Whenever you are working with data, it is
important to make sure the variables in the data are defined so
that you (and anyone else who works with the data) can tell
exactly what was measured, and how.
Variable View window: Type
Type
Click on the ‘type’ box. The two basic types of variables
that you will use are numeric and string. This column
enables you to specify the type of variable.
Variable View window: Width
Width
Width allows you to determine the number of
characters SPSS will allow to be entered for the
variable
Variable View window: Decimals
Decimals
Number of decimals
It has to be less than or equal to 16
3.14159265
Variable View window: Label
Label
You can specify the details of the variable
You can write characters with spaces up to 256
characters
Variable View window: Values
Values
This is used and to suggest which numbers
represent which categories when the
variable represents a category
Type the first possible value (1) for your variable in
the Value field. In the Label field type the label exactly as you
want it to display (e.g., “Qat chewer "). Click Add when you
are finished defining the value and label. Your variable value and
label will appear in the center box. Repeat these steps for each
possible value for your variable. When all of the labels have
been defined, theValue Labels window should look like this:
Defining the value labels
Click the cell in the values column as shown below
For the value, and the label, you can put up to 60
characters.
After defining the values click add and then click OK.
Defining the value labels
Leave all these icons as default
Variable view
Output Viewer
Output Viewer
Displays output and errors. Extension of the saved file will
be “spv.”
Practice 1
How would you put the following information into
SPSS? name gender height
sheryl female 5.7
jennifer female 5.4
tara female 5.3
christian male 5.6
jose male 5.8
roberto male 5.7
kasie female 5.5
cady female 5.5
sandy female 5.6
daniel male 6.0
kurra female 5.4
ashley female 5.4
alain male 6.1
Saving the data
To save the data file you created simply click ‘file’ and
click ‘save as.’ You can save the file in different forms
by clicking “Save as type.”
Click
Saving the data
ملف النتائج
ملف البيانات