列SAS列的百分比

时间:2019-05-10 15:12:48

标签: sas

我是SAS新手。我想显示百分比

我的代码在下面。

proc tabulate data=fall2016 missing;
class strm  Applied admitted;
table strm, Applied  admitted; 
format Applied c. admitted a.;
run;

输出是这样的

enter image description here

我想表明申请英语的录取率,对我的英语感到抱歉。我想在下面做

所以5/422 = 0.01 = 1%

417/422 = 0.99 = 99%

所以我想这样显示

Fall2016 422 5 1% 417 99%

我该怎么做?

谢谢

1 个答案:

答案 0 :(得分:0)

我在我周围搜寻了

proc tabulate data=fall2016 missing;
class strm  Applied admitted;
table strm, Applied   admitted*(n="tests" rowpctn="%"); 
format Applied c. admitted a.;
run;
相关问题