/******************* chd97a.sps ************************/ set width=80 length=none. title 'Simple logistic regression on CHD Data using SPSS'. data list file = 'chd.dat' free /id agegroup age chd. variable labels id 'Patient Identification number' agegroup 'Patient Age Category' age 'Patient''s Age' chd 'Coronary Heart Disease' . value labels agegroup 1 '20-29' 2 '30-34' 3 '35-39' 4 '40-44' 5 '45-49' 6 '50-54' 7 '55-59' 8 '60-69'/ chd 1 'Yes' 0 'No' . logistic regression chd with age.