方法二:若你一定要你的方法去解题的话,那么如下
[code:gpfbbsil]
proc reg data=book1 outest=tmp(keep=Intercept a b c rename=(Intercept=a0 a=a1 b=a2 c=a3));
model asset =a b c;
run;
quit;
data book2;
if _n_=1 then set tmp;
set book1;
ta=a0+a1*a+a2*b+a3*c;
diff=asset-ta;
run;
[/code:gpfbbsil]作者: shiyiming 时间: 2011-12-21 21:12 标题: Re: 自动截取回归系数? SAS 很体贴的,早就有满足你的方法了。