PROGRAM
--------------------------------------
******************************************************************
GROUP BY: SUMMARY BY CATEGORY
------------------------------------------------------------------
Other summary functions available
are
the AVG/MEAN,
STD, VAR
MAX, MIN,
COUNT/FREQ/N,
NMISS, SUM.
STD, VAR
MAX, MIN,
COUNT/FREQ/N,
NMISS, SUM.
This capability Is similar to PROC
SUMMARY/MEANS
with a CLASS statement.
with a CLASS statement.
******************************************************************;
PROC SQL ;
CREATE TABLE EFFICACY1 AS
SELECT DOSE,
VISIT2,
COUNT(DISTINCT (SUBJECT)) AS N,
MEAN(RES) AS MEAN FORMAT 10.1,
STD (RES) AS SD FORMAT 10.2,
MIN (RES) AS MIN FORMAT 10.1,
MEDIAN (RES) AS MEDIAN FORMAT 10.1,
MAX (RES) AS MAX FORMAT 10.1
FROM EFFICACY
GROUP BY DOSE, VISIT2 ;
QUIT ;
--------------------------------------
Post a Comment
別ページに移動します