0
我想解析從數據步到gplot過程的值,以使用調用symput函數向圖中添加一些統計量。但似乎只有最後一次觀察已經傳遞給gplot。我該如何解決這個問題?謝謝。爲什麼不能從數據步驟中解析值來逐步執行步驟?
libname out "c:\sas output";
%global ID;
%global RSQ;
%global RMSE;
%macro plot(in=,id=);
axis1;
axis2 label=(angle=90 justify=center);
symbol1 value=dot c=bib h=15pt i=rl;
symbol2 value=dot c=red h=15pt i=rl;
legend1 position=(outside center bottom) frame label=("Blade ID" font=arial height=15pt) ;
proc gplot data=∈
title1 "Correlation of &id &RSQ &RMSE";
plot ser*ttmcw_nm/ grid legend=legend1 haxis=axis1 vaxis=axis2 annotate=reg;
where Blade_ID="&id";
run;
%mend;
data _null_;
set reg;
call symput('ID',Blade_ID);
call symput('RSQ',_RSQ_);
call symput('RMSE',_RMSE_);
%put &ID;
%plot(in=out.bladeraw,id=&ID);
run;