proc sort data=indata out=outdata; by id date;
data outdata; set outdata;
by id;
ret=(price-lag(price))/lag(price);
if first.id then ret=.;
run;
|
楼主: sepulveda
|
4329
3
求用SAS计算return的方法 |
|
已卖:83份资源 大专生 66%
-
|
|
|
|
| ||
|
Don't get lost in technical details. What is the big picture?
|
||
| ||
|
Don't get lost in technical details. What is the big picture?
|
||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


