我是小肚肚 发表于 2017-11-2 19:46 
你把你数据格式贴上来啊。。光说怎么做??
input long Stkcd float(month1 Y) double Mretwd
596 480 .06382032 .071332
600275 489 .4038982 .018519
600197 480 .3892985 .015664
752 490 .08630259 .131245
600887 490 .15498392 .180398
600887 480 .15498392 .14
600199 490 .04598487 .086655
639 489 .2234821 .077564
895 489 .06969686 .005003
600127 482 .08714895 .009168
639 486 .2234821 .007255
600238 489 .23005503 .030728
729 482 .18701783 -.007008
529 486 .04084459 .070522
600600 489 .11281903 .03871
600882 482 .034211434 -.055838
600866 489 .3239645 .016949
19 491 .20799462 .136876
529 487 .04084459 -.00527
529 491 .04084459 -.056901
929 491 .2775811 .041639
600873 486 .12814511 .454921
600199 489 .04598487 -.012831
600084 483 .10691626 .066258
end
format %tm month1
如果在最后一个数据那里,我想用前面23行数据回归