7# pobel title;
proc tabulate data=sashelp.class out=results;
var weight height;
table weight "weight" ,(mean*f=7.2 n*f=5.0);
table height "height",(mean*f=7.2 n*f=5.0);/*不要用**/
run;
data results;
set results;
Var=ifc(_table_=1,"Weight","Height");
Mean=ifn(_table_=1,weight_mean,height_mean);
N=ifn(_table_=1,weight_n,height_n);
keep var mean n;
run;