SAS中文论坛

标题: 在proc tabulate中的红绿灯应用样例程序 [打印本页]

作者: shiyiming    时间: 2007-10-30 16:00
标题: 在proc tabulate中的红绿灯应用样例程序
[code:3bjtclg6]proc format;
value fmta
low-100='Green'
100<-150='Yellow'
150<-high='Red'
.='Blue';
run;

proc format;
value fmtb
low-50='Green'
50<-80='Yellow'
80<-high='Red'
.='Blue';
run;

ods html file='c:\class.html' charset='uft-8';

proc tabulate data=sashelp.class ;
class sex age;
var height;
table sex='', age=''*height=''*(sum=''*[style=[background=fmta.]] colpctn=''*[style=[background=fmtb.]]);
run;

ods html close;[/code:3bjtclg6]




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2