define cellvalue Frequency;
header="";
label="Frequency Count";
format=BEST7.; data_format_override=on; print=on;
cellstyle _val_ < 10 as datastrong {color=green},
_val_ > 40 & _val_ < 50 as datastrong {color=orange},
_val_ >= 50 as datastrong {color=red};
end;
define cellvalue Expected;
header="";
label="Expected Frequency";
format=BEST6. data_format_override=on print=on;
end;
define cellvalue Deviation;
header="";
label="Deviation from Expected Frequency";
format=BEST6. data_format_override=on print=on;
end;
define cellvalue CellChiSquare;
header="";
label="Cell Chi-Square";
format=BEST6. print=on;
end;
define cellvalue TotalPercent;
header="";
label="Percent of Total Frequency";
format=6.2 print=on;
end;
define cellvalue Percent;
header="";
label="Percent of Two-Way Table Frequency";
format=6.2 print=on;
end;
define cellvalue RowPercent;
header="";
label="Percent of Row Frequency";
format=6.2 print=on;
end;
define cellvalue ColPercent;
header="";
label="Percent of Column Frequency";
format=6.2 print=on;
end;
define cellvalue CumColPercent;
header="";
label="Cumulative Percent of Column Frequency";
format=6.2 print=on;
end;
cellvalue
Frequency Expected Deviation
CellChiSquare TotalPercent Percent
RowPercent ColPercent CumColPercent;
header TableOf ControllingFor;
1066 Appendix 2 Example Programs

Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.