I am trying to run a statistical analysis on Qualitative and quantitative data on a particular table.
A part of my macro contains the below query to run the distribution analysis on the numeric variables:
proc univariate data=TEST.&tbl outtable=nums1 (keep=_VAR_ _NOBS_ _NMISS_ _MIN_ _MAX_ _MODE_ _MEDIAN_ _MEAN_ _STD_ _SKEW_ _KURT_ _P1_ _P5_ _Q1_ _Q3_ _P95_ _P99_ _RANGE_ ) noprint;
var _numeric_;
run;
Can anyone help me with running a similar query on Categorical & other quantitative data in the table. Can a PROC MEANS / PROC FREQUENCY be used instead of Univariate?
Also I would like to know if there is a generelized data type (Refer the Eg above "_numeric_" for all the numeric variables) that could be used to carry out the analysis on all the quantitaive variables?
Thank you.