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
|
3829
3
求用SAS计算return的方法 |
大专生 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?
|
||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明