1047 *********************************************; 1048 * f=sasmanual\clinq_expl_num.sas *; 1049 * *; 1050 * Clinical data set questions: *; 1051 * I. Exploring the data (numeric) *; 1052 *********************************************; 1053 1054 options linesize=min; 1055 1056 libname mydir 'c:\My Documents\My SAS 1056! Files\sasmanual\data'; NOTE: Libref MYDIR was successfully assigned as follows: Engine: V7 Physical Name: c:\My Documents\My SAS Files\sasmanual\data 1057 1058 data clin; 1059 set mydir.clinical; 1060 run; NOTE: The data set WORK.CLIN has 34 observations and 11 variables. NOTE: DATA statement used: real time 0.05 seconds 1061 1062 proc means data=clin; 1063 title1 'The simulated clinical data from the SAS manual'; 1064 title2 'Question 1 - default setting for PROC MEANS'; 1065 run; NOTE: PROCEDURE MEANS used: real time 0.10 seconds 1066 1067 proc means data=clin n mean maxdec=2 nmiss; 1068 var hr sbp dbp; 1069 title2 'Question 2 - means for bp and heart rate'; 1070 run; NOTE: PROCEDURE MEANS used: real time 0.10 seconds 1071 1072 1073 proc means data=clin n mean maxdec=2 nmiss; 1074 var hr sbp dbp; 1075 class gender pregnant; 1076 output out=clinmean; 1077 title2 'Question 3a - means for bp and heart rate w/ 1077! class'; 1078 run; NOTE: The data set WORK.CLINMEAN has 40 observations and 8 variables. NOTE: PROCEDURE MEANS used: real time 0.16 seconds 1079 1080 proc print data=clinmean; 1081 title2 'Question 3b - output data set'; 1082 run; NOTE: PROCEDURE PRINT used: real time 0.04 seconds 1083 1084 proc univariate data=clin; 1085 var sbp dbp; 1086 title2 'Question 4 - mean, median, mode'; 1087 run; NOTE: PROCEDURE UNIVARIATE used: real time 0.26 seconds