Hi, I have this line of code that is calculating the mean of a variable. For a couple variables, the mean is a very high negative number (-0.00001) and because I only want one decimal place, SAS ends up printing the mean as -0.0. Is there a way to get rid of this negative sign This is the code that I am using: data statall (keep=trt_dec row1 row2 row3 row4 vid); merge sesstat(in=a) median; by vid trt_dec; if a; row1=strip(put(n,8.0)); if mean ne . then row2=strip(put(mean, 8.1))||' ('||strip(put(std, 8.2))||')'; if mean =. then row2='-'; if median ne . then row3=strip(put(round(median, .1), 8.1))||' ('||strip(put(min, 8.0))||', '||strip(put(max, 8.0))||')'; if median =. then row3='-'; row4='('||strip(put(uclm, 8.1))||', '||strip(put(lclm, 8.1))||')'; run; Thank you, any help is appreciated!
... View more