31Introduction to SAS
®
“Ethnicity.” Notice that the label attribute for the INCOME variable is listed
in the output because the INCOME variable is assigned a permanent label in
the DATA step in Program 1.17.
Program 1.18:
title 'Assign temporary label to RACE variable';
proc means data = hearing1_1 mean median std;
label race = Ethnicity;
class race;
var income;
run;
Output from Program 1.18:
Assign temporary label to RACE variable
The MEANS Procedure
Analysis Variable : Income People's Income
Ethnicity N Obs Mean Median Std Dev
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
A 5 61420.00 39100.00 45499.25
B 5 61200.00 39100.00 44726.45
H 4 44800.00 37000.00 21332.92
W 20 53575.00 48550.00 25353.54
— — — — — — — — — — — — ...