Hello, I am having trouble to generate code for an assignment. Here is the Questions: Write macro to print and plot the exponential function of a given “base” starting in the range “start” – to – “end” calculated by increment “incr”. Add the title indicating what function you are plotting, in what range and ny what increment. Run your macro as: %exp_plot(.5, -10, 10, .5) %exp_plot(-.5, -10, 10, .5) %exp_plot(-.5, -10, 10, .5) Here is the code i have so far: %macro exp_plot(base,start,end,incr); data plot1; %do i=&start %to &end %by &incr; result=&base**&i; output; %end; run; proc plot data=plot1; plot result; run; %mend exp_plot; %exp_plot(.5, -10, 10,.5) %exp_plot(-.5, -10, 10,.5) %exp_plot(-.5, -10, 10,.5) Can someone please point me in the right direction?
... View more