SPSS and Building Models
SPSS and Building Models
Hans Burgerhof
Epidemiology
[email protected]
Programme
Some information on working with SPSS
- creating your own dataset
- importing data (from Excel)
- working with SPSS syntax files
Building a regression model
- prediction models
- estimating a specific relationship; to correct for
other variables or not?
SPSS tutorials on the Internet
SPSS, the empty data matrix
The variable view (empty)
Variable view
Typing in data (Data view)
Missing data
Statistics
age
N Valid 5
Missing 0
Mean 216,200
0
Statistics
age
N Valid 4
Missing 1
Mean 20,5000
Some parts of the menu (1)
𝑋 1 , 𝑋 2 , 𝑋 4 , 𝑋5 Step 6
Optional:
𝑋 1 , 𝑋 2 , 𝑋 3 , 𝑋 4 , 𝑋 5 , 𝑋 6 investigate
addition of
interaction terms
Final model…
Step 7
Check model
assumptions
Example (FEV data)
N = 624 children (Boston)
girl = 0
boy = 1
Checking the assumptions concerning the
residuals (7)
Lines by subgroups (6)
?
Smoke FEV