Trying to use arrays for log and square root functions. First, how do I get each individual log and square root function, for example, it is giving me the log for all of x1-x5, however I just want it for each subset of data, for example, x1 is 1 and 11, I want the log of just that. In addition, how do I get the x1-x5 and the y1-y3 on the same output, right now, (using seperate statements), I can get the log of x1-x5 (not individually) and if I run a seperate statement I can get the square root of sy1-sy3, not inidivdually.... data speed; input X1-X5 Y1-Y3; datalines; 1 2 3 4 5 6 7 8 11 22 33 44 55 66 77 88 ; data speed2 (drop=x1-x5 i); set work.speed; array num {5} lx1-lx5; do i= 1 to 5; log = (i); end; data speed2 (drop=y1-y3 i); array let {3} sy1-sy3; do i=1 to 3; sqrt = (i); end; run;
... View more