1 The SAS System 19:42 Monday, May 24, 1993 NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA. NOTE: SAS (r) Proprietary Software Release 6.07.01 Licensed to VIRGINIA COMMONWEALTH UNIVERSITY-MCV, Site 0001183009. NOTE: Running on IBM Model RS/6000 Serial Number 000118583100. If you need help with SAS, call 6-9843. NOTE: AUTOEXEC processing beginning; file is /workshop/usr/sas/autoexec.sas. NOTE: SAS initialization used: real time 0.724 seconds cpu time 0.570 seconds NOTE: AUTOEXEC processing completed. 1 OPTIONS nocenter; 2 FILENAME sibs 'selonx.vl'; 3 4 DATA NEALE1; 5 FILE sibs; 6 array v{2}; 7 x=.5; 8 n=0; 9 10 sample: IF N gt 500 THEN GO TO DONE; 11 n=n+1; 12 famfac=rannor(0); 13 v(1)=SQRT(X)*famfac + SQRT(1-X)*RANNOR(0); 14 if v(1) gt 0 then do; 15 v(2) = SQRT(X)*famfac + SQRT(1-X)*RANNOR(0); 16 size=2; 17 end; 18 else do; 19 v(2)=.; 20 size=1; 21 end; 22 PUT SIZE; 23 DO I=1 TO size; 24 IF V{I} NE . THEN PUT i @@; /* Write the identifiers */ 25 END; 26 PUT; 27 DO I=1 TO size; 28 IF V{I} NE . THEN PUT V{I} 13.6 +1 @@; /* Write the data values */ 29 END; 30 PUT; 31 OUTPUT; 32 x1=v{1}; y=v{2}; 33 34 GO TO sample; 35 36 DONE: COMMENT sample complete; 37 2 The SAS System 19:42 Monday, May 24, 1993 NOTE: The file SIBS is: File Name=/calculus/users1/workshop/mcn/mx/power/selonx.vl, Inode Number=24203,Access Permission=rw-r--r--, Owner Name=mcn,File Size (bytes)=0 NOTE: 1503 records were written to the file SIBS. The minimum record length was 1. The maximum record length was 27. NOTE: The data set WORK.NEALE1 has 501 observations and 9 variables. NOTE: DATA statement used: real time 1.291 seconds cpu time 1.100 seconds 38 DATA CONKERS; SET NEALE1; NOTE: The data set WORK.CONKERS has 501 observations and 9 variables. NOTE: DATA statement used: real time 0.200 seconds cpu time 0.120 seconds 39 PROC CORR COV; 40 VAR x1 y; 41 RUN; NOTE: The PROCEDURE CORR printed page 1. NOTE: PROCEDURE CORR used: real time 0.179 seconds cpu time 0.150 seconds 42 DATA CONKER2; SET NEALE1; if x1 gt 0; NOTE: The data set WORK.CONKER2 has 243 observations and 9 variables. NOTE: DATA statement used: real time 0.213 seconds cpu time 0.110 seconds 43 PROC CORR COV; 44 VAR x1 y; 45 RUN; NOTE: The PROCEDURE CORR printed page 2. NOTE: PROCEDURE CORR used: real time 0.047 seconds cpu time 0.050 seconds NOTE: The SAS System used: real time 2.773 seconds cpu time 2.200 seconds NOTE: SAS Institute Inc., SAS Circle, PO Box 8000, Cary, NC 27512-8000