我需要对每一只股票都做一次回归,这样下来要做将近1000个,接着还需要用这1000个回归系数进行相关的计算。因此,我需要将这1000个回归系数输出到一张表里,表的结构为:stkcd(股票代码)、a、b.我的模型为:Dretwd=a+b*weight_avg_index5+残差项
我的回归过程为:proc reg data=merger.estimation_180_30;
model Dretwd=weight_avg_index5;by tran_id;
quit;
这种输出怎样在sas中实现?
谢谢解惑!