Normality tests in SAS

I am completely new to SAS and I am desperate.
So my code is:

DATA abc;
INPUT AA BB CC DD EE;
CARDS;

;
RUN;  

PROC PRINT DATA = abc;  
TITLE "My_Data";  
RUN;

PROC UNIVARIATE DATA = abc OUTTABLE = Table NOPRINT;  
VAR AA BB CC DD EE;  
RUN;

PROC PRINT DATA = Table LABEL NOOBS;  
TITLE "Univariate Normality Tests per Variable";  
VAR _VAR_ _NORMAL_ _PROBN_;  
LABEL _VAR_ = 'VARIABLE';  
RUN;

I have a problem with the "Univariate Normality Tests per Variable" table - it contains zeros. My desire is to have only a table of normality statistics for each variable in order to compare them as recommended (i.e. here ). I implemented the SAS macro but it contains only one such test. Please help me.

+5
source share
2 answers

If you just want the Normality test statistics in one table for all variables, I would suggest using ODS.

eg.

ods listing close;
ods output TestsForNormality=NormaliltyTest;
PROC UNIVARIATE DATA = abc normal;  
VAR AA BB CC DD EE;  
RUN;

ods listing;
PROC PRINT DATA = NormaliltyTest LABEL NOOBS;  
TITLE "Univariate Normality Tests per Variable";  
RUN;
+3
source

It looks like you need the NORMAL option in the PROC UNIVARIATE statement.

PROC UNIVARIATE DATA = abc OUTTABLE = Table NORMAL NOPRINT;  
VAR AA BB CC DD EE;  
RUN;

This does not output the test for each variable to the test, but it is the beginning.

PROC UNIVARIATE Documentation

+1
source

All Articles