1 The SAS System 22:13 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.735 seconds cpu time 0.560 seconds NOTE: AUTOEXEC processing completed. 1 OPTIONS nocenter; 2 FILENAME sibs 'selony.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 dummy=SQRT(X)*famfac + SQRT(1-X)*RANNOR(0); 15 if dummy gt 0 then do; 16 v(2) = dummy; 17 size=2; 18 end; 19 else do; 20 v(2)=.; 21 size=1; 22 end; 23 PUT SIZE; 24 DO I=1 TO size; 25 IF V{I} NE . THEN PUT i @@; /* Write the identifiers */ 26 END; 27 PUT; 28 DO I=1 TO size; 29 IF V{I} NE . THEN PUT V{I} 13.6 +1 @@; /* Write the data values */ 30 END; 31 PUT; 32 OUTPUT; 33 x1=v{1}; y=v{2}; 34 35 GO TO sample; 36 37 DONE: COMMENT sample complete; 2 The SAS System 22:13 Monday, May 24, 1993 38 NOTE: The file SIBS is: File Name=/calculus/users1/workshop/mcn/mx/sel/selony.vl, Inode Number=25221,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 10 variables. NOTE: DATA statement used: real time 1.297 seconds cpu time 1.130 seconds 39 DATA CONKERS; SET NEALE1; NOTE: The data set WORK.CONKERS has 501 observations and 10 variables. NOTE: DATA statement used: real time 0.229 seconds cpu time 0.120 seconds 40 PROC CORR COV; 41 VAR x1 y; 42 RUN; NOTE: The PROCEDURE CORR printed page 1. NOTE: PROCEDURE CORR used: real time 0.166 seconds cpu time 0.130 seconds 43 DATA CONKER2; SET NEALE1; if x1 gt 0; NOTE: The data set WORK.CONKER2 has 258 observations and 10 variables. NOTE: DATA statement used: real time 0.209 seconds cpu time 0.110 seconds 44 PROC CORR COV; 45 VAR x1 y; 46 RUN; NOTE: The PROCEDURE CORR printed page 2. NOTE: PROCEDURE CORR used: real time 0.053 seconds cpu time 0.050 seconds NOTE: The SAS System used: real time 2.818 seconds cpu time 2.210 seconds NOTE: SAS Institute Inc., SAS Circle, PO Box 8000, Cary, NC 27512-8000