Page 245 Table 11.1 Means and standard deviations for nondepressed and depressed adults in Los Angeles County
NOTE: After getting the data file, you need to sort the data file by the variable cases. Next, you need to split the file by cases so that you can get the means and standard deviations for those coded as normal and depressed. The temporary command is used before the split file command so that the data file is not split permanently, but rather split only while the next command, in this case, the descriptives command, is run.
get file 'c:cama3depress.sav'. sort cases by cases. temporary. split file by cases. descriptives variables = sex age educat income health beddays acuteill chronill /stat = mean stddev.
Page 248 Figure 11.2 Distribution of income for depressed and nondepressed individuals showing effects of a dividing point at an income of $18440
We were unable to reproduce this graph.
Page 249 Table 11.2 Classification of individuals as depressed or not depressed on the basis of income alone
discriminant groups = cases (0,1) /variables = income /statistics = table.
<some output omitted>
Page 252 Figure 11.5 Classification of individuals as depressed or not depressed on the basis of income and age
Page 253 Table 11.3 Classification of individuals as depressed or not depressed on the basis of income and age
<some output omitted>
Page 257 Table 11.4 Classification function and discriminant coefficients for age and income from BMDP 7M
NOTE: We were unable to get the discriminant functions shown in the right-hand column of the table.
Page 258 The covariances in the middle of the page
regression /dependent cases /method = enter age income /descriptives cov.
Page 268 Table 11.5 Partial printout from BMDP 7M for classification into more than two groups, using the depression data with K = 3 groups
Before you can do this, you need to add a new variable to the data set and use the variable cesd to recode the new variable, which we called cases3.
if cesd = 0 cases3 = 1. if cesd ge 1 & cesd le 15 cases3 = 2. if cesd ge 16 cases3 = 3. execute. discriminant groups = cases3 (1,3) /variables = sex age educat income health beddays /statistics = coeff raw /plot = combined.
<some output omitted>
Page 271 Figure 11.6 Plot of the canonical variables for the depression data set with k = 3 groups
NOTE: This graph is produced by the /plot subcommand in the discriminant command above. We do not know why it does not look more similar to the graph shown in the text.