- proc sort data=aaa; by id; run;
- data x1; set aaa;
- by id;
- retain x1;
- if first.id then x1=0;
- if x in (3,4) then x1=x1+1;
- if last.id then output;
- drop x;
- run;
|
楼主: dxystata
|
1174
2
统计每个个体出现3和4的次数 |
|
已卖:302份资源 大师 37%
-
TA的文库 其他...
|
|
|
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


