我的数据是这样子的。
| stock_code | day | price |
1 | 20111231 | 1 |
1 | 20111230 | 2 |
1 | 20111229 | 3 |
1 | 20111228 | 4 |
数据一直到1995年。
我想看,对于每一天来说,之前的一年,的price的最大值。比如,2011年12月31号,我想把,一直到2011年1月1日,最大值挑出来。 2011年12月30号,我想把,一直到2010年12月30日,这期间的最大值挑出来。
sas新手,真的不知道该怎么弄。。。。谢谢!

|
楼主: dabao1988
|
1498
7
求教!有点复杂的最大值问题 |
|
硕士生 58%
-
|
| |||||||||||||||||
|
|
| ||
|
欢迎加入SAS群:144839730-蜗牛
|
||
| ||
| ||
|
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord. When disappointment, grief and fear are gone, Sorrow forgot, love's purest joys restored. |
|
| ||
| ||
|
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord. When disappointment, grief and fear are gone, Sorrow forgot, love's purest joys restored. |
||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


