xtset id year
tssmooth ma s=cf,w(2,1)
tssmooth ma s2=cf^2,w(2,1)
bys id (year): g sd=sqrt((s2-s^2)*3/2) if_n>2。
那么,如何求各个行业(code)cf指标的三年滚动标准差?如下图。有论坛币酬谢,谢谢!
![360反馈意见截图16360807201850.png 360反馈意见截图16360807201850.png](https://bbs-cdn.datacourse.cn/static/image/common/none.gif)
楼主: 大世界里遇見你
|
15190
8
[编程问题求助] 滚动标准差 |
副教授 74%
-
|
| ||
| ||
京ICP备16021002-2号 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明