----------------------- copy starting from the next line -----------------------
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long Liscd float r
- 112005 -1.1283283
- 112005 -4.896427
- 112005 .7003947
- 112005 1.0149968
- 112005 .6404027
- 112005 .5572735
- 112005 .56583285
- 112005 .0501867
- 112005 1.0195905
- 112005 1.2671194
- 112005 .4497726
- 112005 .22810838
- 112005 .08054333
- 112005 -5.094564
- 112006 -.7719162
- 112006 -6.742584
- 112006 1.6475964
- 112006 1.0478933
- 112006 .28545246
- 112006 .7494419
- 112006 .5222339
- 112006 .7523049
- 112006 .9739857
- 112006 .988769
- 112006 .8611933
- 112006 .06301104
- 112006 -.13780731
- 112006 -6.300318
- 112011 -4.531723
- 112011 .26550543
- 112011 .9878948
- 112011 1.1427187
- 112011 .7347154
- 112011 .8167152
- 112011 .7017801
- 112011 .19830687
- 112011 -.9447712
- 112011 .4684099
- 112011 .3499039
- 112011 .51975226
- 112011 .016737415
- 112012 1.0600435
- 112012 -4.5027833
- 112012 -.3031643
- 112012 1.9809593
- 112012 .4572738
- 112012 .8819432
- 112012 .8479121
- 112012 .610545
- 112012 -1.7408445
- 112012 .014142763
- 112012 1.2934626
- 112012 .3127197
- 112012 .30710825
- 112012 .1831433
- end
------------------ copy up to and including the previous line ------------------
其中Liscd是证券代码,r是收益率。现在我想做一个循环,对每个证券的r,检验其偏度和峰度的显著性。已知检验函数为sktest,不能用by,现在想用foreach完成,该怎么做


雷达卡






京公网安备 11010802022788号







