0
我在SAS如何在SAS中的sgplot中將對數行擬合爲多個系列?
%macro Plot_Rolling_Avgs(id, ylabel_, xlabel_, title_, avg_1, avg_2, avg_3, avg_4, avg_5, avg_6);
proc Sgplot data=VA_PUR_Cur_Cur_Roll;
SERIES X = &id Y = &avg_1;
SERIES X = &id Y = &avg_2;
SERIES X = &id Y = &avg_3;
SERIES X = &id Y = &avg_4;
SERIES X = &id Y = &avg_5;
SERIES X = &id Y = &avg_6;
YAXIS LABEL = &ylabel_;
XAXIS LABEL = &xlabel_;
Title &title_;
keylegend/location=inside position=topleft across=1;
ods graphics on/
width=15.0in
height=5.0in;
run;
quit;
%mend Plot_Rolling_Avgs;
我想數平均線添加到圖表爲每個時間序列。我試圖避免創建另一列對數平均值並繪製這些列,而是希望有一個內置函數可供使用。
有沒有人有這方面的經驗?