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_ME platform. NOTE: SAS initialization used: real time 0.99 seconds 1 *** a_c.sas, from old ST210A_C.SAS; 2 3 libname stat210 'c:\sasjobs\stat210\jl2003'; NOTE: Libref STAT210 was successfully assigned as follows: Engine: V8 Physical Name: c:\sasjobs\stat210\jl2003 4 5 options formdlim = '-'; 6 7 filename sa_clst 'c:\sasjobs\stat210\jl2003\sa_clst.pdf'; 8 ods printer pdf file=sa_clst; NOTE: Writing ODS PRINTER output to DISK destination "c:\sasjobs\stat210\jl2003\sa_clst.pdf", printer "PDF". 9 10 11 DATA ONE; SET STAT210.EXERCISE; IF EX3; 12 KEEP TRIGL ALCAT EXDRK CRDRK CIGS age sex weight cholest sexage; 13 14 IF ALCAT=1 THEN do; EXDRK=0; CRDRK=0; end; *** ALCAT=1=NON-DRINKER; 15 IF ALCAT=2 THEN do; EXDRK=1; CRDRK=0; end; *** ALCAT=2=EX-DRINKER; 16 IF ALCAT=3 THEN do; EXDRK=0; CRDRK=1; end; *** ALCAT=3=CURRENT DRINKER; 17 sexage=sex*age; 18 19 TITLE1 'ANALYSES OF NCGS DATA FOR ALCOHOL STATUS CATEGORIES'; 20 NOTE: There were 916 observations read from the data set STAT210.EXERCISE. NOTE: The data set WORK.ONE has 305 observations and 10 variables. NOTE: DATA statement used: real time 0.16 seconds 21 PROC SORT; BY ALCAT; NOTE: There were 305 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 305 observations and 10 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds 22 PROC MEANS; VAR TRIGL; BY ALCAT; 23 NOTE: There were 305 observations read from the data set WORK.ONE. NOTE: PROCEDURE MEANS used: real time 0.49 seconds 24 PROC GLM; CLASS ALCAT; MODEL TRIGL=ALCAT; 25 lsmeans alcat; 26 title2 'unadjusted models with alcat'; 27 NOTE: PROCEDURE GLM used: real time 0.44 seconds 28 PROC REG; 29 MODEL TRIGL= EXDRK CRDRK; 30 ALCAT: TEST EXDRK=0, CRDRK=0; 31 32 RUN; NOTE: 305 observations read. NOTE: 305 observations used in computations. 33 NOTE: PROCEDURE REG used: real time 0.33 seconds 34 proc freq; tables alcat*sex / nopercent nocol; 35 title2 'alcat by sex association'; 36 NOTE: There were 305 observations read from the data set WORK.ONE. NOTE: PROCEDURE FREQ used: real time 0.27 seconds 37 proc GLM data=one; CLASS ALCAT sex; MODEL TRIGL=ALCAT sex age weight cholest; 38 lsmeans alcat sex; 39 title2 'covariate adjusted models with alcat'; 40 NOTE: PROCEDURE GLM used: real time 0.26 seconds 41 PROC REG data=one; 42 MODEL TRIGL= EXDRK CRDRK sex age weight cholest; 43 ALCAT: TEST EXDRK=0, CRDRK=0; 44 RUN; NOTE: 305 observations read. NOTE: 305 observations used in computations. 45 NOTE: PROCEDURE REG used: real time 0.38 seconds 46 PROC REG data=one; 47 MODEL TRIGL= sex age sexage; 48 sex: TEST sex=0, sexage=0; 49 title2 'sex by age interaction model'; 50 51 RUN; NOTE: 305 observations read. NOTE: 305 observations used in computations. 52 53 ods printer close; NOTE: ODS PRINTER printed 14 pages to c:\sasjobs\stat210\jl2003\sa_clst.pdf. 54 RUN;