- proc sql;
- create table temp1 as select a.*, b.country as country_before from a left join b
- on a.id=b.id and a.startyear>b.startyear;
- create table temp2 as select id,startyear, count(distinct country_before) from temp1 group by id,startyear;
- quit;
|
楼主: liuliuqiu
|
3220
22
[问答] SAS求教 |
|
已卖:35份资源 副教授 64%
-
|
15论坛币
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


