NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to GEORGE WASHINGTON UNIVERSITY-CAMPUSWIDE-T/R, Site 0001180006. NOTE: This session is executing on the WIN_PRO platform. NOTE: SAS initialization used: real time 3.23 seconds cpu time 0.49 seconds 1 *** ST210A_D; 2 *** c:\sasjobs\stat210\JL2003; 3 4 libname ncgs 'C:\sasjobs\stat210'; NOTE: Libref NCGS was successfully assigned as follows: Engine: V604 Physical Name: C:\sasjobs\stat210 5 6 DATA ONE; SET ncgs.exercise; IF EX6; 7 TITLE1 'NCGS DATA'; 8 KEEP TRETGRP TRIGL AGE; 9 IF TRETGRP=3 OR TRETGRP=5; 10 11 title2 'frequency distributions of age, a coarse distribution'; 12 title3 'combined groups, one group example'; 13 NOTE: There were 916 observations read from the data set NCGS.EXERCISE. NOTE: The data set WORK.ONE has 197 observations and 3 variables. NOTE: DATA statement used: real time 0.32 seconds cpu time 0.03 seconds 14 PROC UNIVARIATE PLOT normal; VAR age; 15 TITLE4 'SIMPLE UNIVARIATE DISTRIBUTIONS AND HISTOGRAMS'; NOTE: PROCEDURE UNIVARIATE used: real time 0.23 seconds cpu time 0.03 seconds 16 PROC CHART; 17 VBAR age / MIDPOINTS = 25 TO 75 by 5; NOTE: PROCEDURE CHART used: real time 0.06 seconds cpu time 0.00 seconds 18 PROC freq DATA=one; tables age / out=pcts; NOTE: There were 197 observations read from the data set WORK.ONE. NOTE: The data set WORK.PCTS has 43 observations and 3 variables. NOTE: PROCEDURE FREQ used: real time 0.03 seconds cpu time 0.00 seconds 19 proc plot; 20 plot percent*age = '*'; 21 NOTE: There were 43 observations read from the data set WORK.PCTS. NOTE: PROCEDURE PLOT used: real time 0.01 seconds cpu time 0.00 seconds 22 proc kde out=kernel bwm=0.75 data=one; var age; 23 title4 'kernel smoothed density estimates'; NOTE: The data set WORK.KERNEL has 401 observations and 3 variables. NOTE: PROCEDURE KDE used: real time 0.04 seconds cpu time 0.00 seconds 24 proc plot; plot density*age; 25 26 RUN; 27 NOTE: There were 401 observations read from the data set WORK.KERNEL. NOTE: PROCEDURE PLOT used: real time 0.01 seconds cpu time 0.01 seconds 28 DATA one; SET one; 29 title2 'frequency distributions of trigl, a fine distribution'; 30 title3 'two group example: 3= drug group, 5= placebo group'; 31 NOTE: There were 197 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 197 observations and 3 variables. NOTE: DATA statement used: real time 0.00 seconds cpu time 0.00 seconds 32 proc sort; by tretgrp; 33 NOTE: There were 197 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 197 observations and 3 variables. NOTE: PROCEDURE SORT used: real time 0.04 seconds cpu time 0.00 seconds 34 PROC UNIVARIATE normal plot; VAR TRIGL; by tretgrp; 35 NOTE: Formatted values of BY variable TRETGRP truncated to 8 characters in side-by-side box plots. NOTE: PROCEDURE UNIVARIATE used: real time 0.21 seconds cpu time 0.03 seconds 36 proc kde out=kernel bwm=0.75; 37 var trigl; by tretgrp; 38 title4 'kernel smoothed density estimates'; 39 NOTE: The data set WORK.KERNEL has 802 observations and 4 variables. NOTE: PROCEDURE KDE used: real time 0.01 seconds cpu time 0.01 seconds 40 data kernel; set kernel; 41 density3=.; if tretgrp=3 then density3=density; 42 density5=.; if tretgrp=5 then density5=density; 43 NOTE: There were 802 observations read from the data set WORK.KERNEL. NOTE: The data set WORK.KERNEL has 802 observations and 6 variables. NOTE: DATA statement used: real time 0.00 seconds cpu time 0.00 seconds 44 PROC PLOT; 45 PLOT density3*TRIGL = 'D' 46 density5*TRIGL = 'P' 47 / OVERLAY; 48 TITLE5 'D=DRUG GROUP, P=PLACEBO GROUP'; 49 50 RUN; 51 NOTE: There were 802 observations read from the data set WORK.KERNEL. NOTE: PROCEDURE PLOT used: real time 0.04 seconds cpu time 0.00 seconds 52 DATA one; SET one; 53 title2 'frequency distributions of log trigl'; 54 title3 'two group example: 3= drug group, 5= placebo group'; 55 56 ltrigl = log(trigl); 57 NOTE: There were 197 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 197 observations and 4 variables. NOTE: DATA statement used: real time 0.04 seconds cpu time 0.01 seconds 58 proc sort; by tretgrp; 59 NOTE: There were 197 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 197 observations and 4 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds cpu time 0.00 seconds 60 PROC UNIVARIATE normal PLOT; VAR LTRIGL; BY TRETGRP; 61 TITLE4 'SIMPLE UNIVARIATE DISTRIBUTIONS AND HISTOGRAMS'; 62 NOTE: Formatted values of BY variable TRETGRP truncated to 8 characters in side-by-side box plots. NOTE: PROCEDURE UNIVARIATE used: real time 0.07 seconds cpu time 0.03 seconds 63 proc kde out=kernel bwm=0.75; 64 var ltrigl; by tretgrp; 65 title4 'kernel smoothed density estimates'; 66 NOTE: The data set WORK.KERNEL has 802 observations and 4 variables. NOTE: PROCEDURE KDE used: real time 0.07 seconds cpu time 0.01 seconds 67 data kernel; set kernel; 68 density3=.; if tretgrp=3 then density3=density; 69 density5=.; if tretgrp=5 then density5=density; 70 NOTE: There were 802 observations read from the data set WORK.KERNEL. NOTE: The data set WORK.KERNEL has 802 observations and 6 variables. NOTE: DATA statement used: real time 0.01 seconds cpu time 0.01 seconds 71 PROC PLOT; 72 PLOT density3*LTRIGL = 'D' 73 density5*LTRIGL = 'P' 74 / OVERLAY; 75 TITLE5 'D=DRUG GROUP, P=PLACEBO GROUP'; 76 77 RUN; 78 79 RUN; 80