Академический Документы
Профессиональный Документы
Культура Документы
uk
Purpose and use of SPSS Open SPSS What is a Variable? Defining variables in SPSS Entering Data Open and save data files Import data from Excel Handling missing data
DEFINE VARIABLES
Enter variable names in the first column. We will look at all the columns in more detail shortly.
ENTER DATA
Enter the data for each variable from the Data View. We will also look at entering data in more detail shortly.
W H AT HOW
I S A VA R I A B L E ?
D O W E D E F I N E VA R I A B L E S I N S P S S ?
WHAT IS A VARIABLE?
A measurement:
A characteristic (e.g., Gender, Age, Height, Weight) Time points (e.g., pre-test, post-test, T0, T1, T2)
Etc
Variables go in Columns
Male or Female
Variables go in Columns
Variables go in Columns
Variables go in Columns
Indicate your level of agreement with the following statement: Most days, my commute causes me to feel stressed when I arrive at university.
IDENTIFYING VARIABLES
Questionnaire Responses Random sample of 200 residents of Uxbridge of varying genders, ages and political affiliations. Asked respondents their view on stem cell research using a 3 pt. Likert Scale (Disagree, No Opinion, Agree). Asked respondents if they believed global warming was an important issue using a 5 pt. Likert Scale (Strongly Disagree to Strongly Agree).
Variables go in Columns
Experimental Condition
Cond 1 and 2 are independent, NOT repeated measures.
Variables go in Columns
Score on a test
IDENTIFYING VARIABLES
CAFFEINE AND SLEEP 30 participants were used to investigate the effect of caffeine on their ability to sleep. The 30 participants were randomly assigned to one of 2 conditions: No caffeine (control) or one dose of caffeine every 3 hours from 9am-6pm. The study measured participants ability to sleep by taking the average number of hours slept per night over a 2 week period.
Variables go in Columns
Variables go in Columns
Variables go in Columns
IDENTIFYING VARIABLES
Fitness regime 50 participants of varying fitness levels were used to investigate whether personal trainers make a significant difference in ones fitness. Participants were randomly assigned to one of two training groups: self training or professional trainer. Each participants 1 mile time (in mins) was recorded 2 days prior to the start of the study. Each group then followed a specific training regime for 30 days and their 1 mile time (in mins) recorded again.
IDENTIFYING VARIABLES
Fitness regime 50 participants of varying fitness levels were used to investigate whether personal trainers make a significant difference in ones fitness. Participants were randomly assigned to one of two training groups: self training or professional trainer. Each participants 1 mile time (in mins) was recorded 2 days prior to the start of the study. Each group then followed a specific training regime for 30 days and their 1 mile time (in mins) recorded again.
LEVELS OF MEASUREMENT
Variables
Categorical
Qualitative
Scale
Quantitative
Nominal
(Unranked categories)
Ordinal
(Ranked categories)
Not grouped
In SPSS, data is either Nominal, Ordinal or Scale. It is essential to classify data correctly.
- Incorrect classification may result in incorrect analyses.
CODING
C AT E G O R I C A L VA R I A B L E S
Level of Measurement?
0 0 1 0 1 1 0 1 0 1
Level of Measurement?
0 = Male 1 = Female
Level of Measurement?
Level of Measurement?
1 2 1 1 1 3 4 1 2
Indicate your level of agreement with the following statement: Most days, my commute causes me to feel stressed when I arrive at university.
Level of Measurement?
2 4 5 5 4 2 1 3 2
Entering Data
1. Enter & define variables from Variable View.
Variable names
Must begin with a letter No spaces and no special characters (except _ )
Entering Data
1. Enter & define variables from Variable View.
Type
Should (almost) always be numeric SPSS cannot analyse non-numeric data
Entering Data
1. Enter & define variables from Variable View.
Decimals
How many decimal places do you want to see in the Data View?
Entering Data
1. Enter & define variables from Variable View.
Label
IMPORTANT!!! Make good labels! Short description of the variable This is what will be written on all graphs & tables
Entering Data
1. Enter & define variables from Variable View.
Entering Data
1. Enter & define variables from Variable View.
Entering Data
1. Enter & define variables from Variable View.
Missing
We will come back to this one shortly.
Entering Data
1. Enter & define variables from Variable View.
-1
Measure
Level of Measurement (Nominal, Ordinal, Scale) By default ALL new variables are scale YOU must choose the appropriate measure
Entering Data
2. Enter data from Data View.
Variable names
Will become column headings in Data View.
Entering Data
2. Enter data from Data View.
Rows
Subject entries For example, participant responses to survey questions. Row 1 is participant 1, etc
Entering Data
OUTPUT FILE
Shows output for ALL analysis run in SPSS Keeps a log of all activity of open data files Saved with the extension .spv
A data file was saved as SPSS_Part1_Ex7.sav. This was recorded in the log here.
CREATING A NEW SPSS FILE New data file New output file
OPEN AN EXISTING SPSS FILE Existing data file Existing output file ALWAYS open SPSS first! If you try opening a data file from a folder, SPSS will NOT work
FROM EXCEL
FOR EXAMPLE.
Filename
(.xlsx)
Variable names
(Row 1)
FOR EXAMPLE.
3
FOR EXAMPLE.
If NOT
Enter correct range here
FOR EXAMPLE.
Variable Names
(from Row 1)
FOR EXAMPLE.
H O W T O H A N D L E M I S S I N G D ATA
Replace missing values with a code Use a code that will not occur for the variable Lets use -1, as negative time is not possible
Missing
Missing data must be coded too! Chose a number not in the data, like 99 or 999 Replace all missing values in your data with this code first
This is only a code it tells SPSS what values represent missing values. It does not replace missing values with the code for you!