1
我有以下sas代碼(最後幾行)。我需要的是保存r-squared,調整r-squared(除了保留CUSIP6 trandate CRSPtrandate tshares shrvol dolvol BSI攔截mktrf smb hml umd)。如何在sas中保存R平方?
proc sort data=dailyFFrets;
by CUSIP6 trandate CRSPtrandate tshares dolvol BSI shrvol;
run;
options nonotes;
proc reg data=dailyFFrets outest=alpha (keep=CUSIP6 trandate CRSPtrandate
tshares shrvol dolvol BSI intercept mktrf smb hml umd) noprint;
by CUSIP6 trandate CRSPtrandate tshares dolvol BSI shrvol;
model rirf=mktrf smb hml umd;
quit;
options notes;
data alpha;
set alpha;
alpha=intercept*sign(tshares)*100;
run;
請參閱此帖以回答您的問題:http://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html – Reeza