How to fit a logarithmic line to multiple series in sgplot in SAS?
<p>I have the current macro in sas</p>

<pre><code>%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 = &amp;id Y = &amp;avg_1;
SERIES X = &amp;id Y = &amp;avg_2;
SERIES X = &amp;id Y = &amp;avg_3;
SERIES X = &amp;id Y = &amp;avg_4;
SERIES X = &amp;id Y = &amp;avg_5;
SERIES X = &amp;id Y = &amp;avg_6;
YAXIS LABEL = &amp;ylabel_;
XAXIS LABEL = &amp;xlabel_; 
Title &amp;title_;
keylegend / location=inside position=topleft across=1;

ods graphics on / 
    width=15.0in
    height=5.0in;
run;                                                                                                                                    
quit;      
%mend Plot_Rolling_Avgs;
</code></pre>

<p>Which gives me the result:
<a href="https://i.stack.imgur.com/sLpJC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sLpJC.png" alt="enter image description here"></a></p>

<p>I'm trying to add logarithmic average lines to the graph for each of the time series. I'm trying to avoid create another column of logarithmic averages and plot those as well, and instead am hoping there's a built-in function to use. </p>

<p>Does anyone have any experience with this?</p>