I have questions about working with multiple columns using the proc univariate
statement.
1) I need to create histograms with the column header in the title, as such:
proc univariate data=data noprint;
histogram var1;
title 'histogram for var1';
run;
I know this
proc univariate data=data noprint;
histogram;
run;
will produce histograms for all continuous variables, but how to include the column header in the title?
2) I need to replace extreme values of each continuous variable as missing value. I calculate the quartiles and IQR as such:
PROC UNIVARIATE DATA = data NOPRINT;
OUTPUT OUT = boxStats p25 = p25 p75 = p75 QRANGE = iqr;
RUN;
This saves the quartiles and IQR of the last column but not the remaining. Do I need to go through and create variables for each one? There is more than 20.