NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to NORTH DAKOTA UNIVERSITY SYSTEM-SYSTEMWIDE-INTERNAL, Site 0011524002. NOTE: This session is executing on the WIN_PRO platform. NOTE: SAS initialization used: real time 2.52 seconds cpu time 0.71 seconds 1 options pageno=1; 2 data reg; 3 input x rep y; 4 xy=x*y; 5 datalines; NOTE: The data set WORK.REG has 12 observations and 4 variables. NOTE: DATA statement used: real time 0.64 seconds cpu time 0.03 seconds 18 ;; 19 proc print; 20 title 'Printout of Data - All Data'; 21 run; NOTE: There were 12 observations read from the data set WORK.REG. NOTE: PROCEDURE PRINT used: real time 0.97 seconds cpu time 0.03 seconds 22 proc reg; 23 model y=x; 24 title 'Regression on All Data - Reps Kept Separate'; 25 run; NOTE: 12 observations read. NOTE: 12 observations used in computations. NOTE: PROCEDURE REG used: real time 0.55 seconds cpu time 0.04 seconds 26 proc sort; 27 by x; NOTE: There were 12 observations read from the data set WORK.REG. NOTE: The data set WORK.REG has 12 observations and 4 variables. NOTE: PROCEDURE SORT used: real time 0.08 seconds cpu time 0.00 seconds 28 proc means mean noprint; 29 by x; 30 var y; 31 output out=new mean=meany; 32 *Comment: The previous statement takes the average of Y1 and Y2 to create 33 a new variable Y. Performing regression on means provides a better 34 coefficient of determination'; 35 run; NOTE: There were 12 observations read from the data set WORK.REG. NOTE: The data set WORK.NEW has 6 observations and 4 variables. NOTE: PROCEDURE MEANS used: real time 0.18 seconds cpu time 0.03 seconds 36 proc reg; 37 model meany=x; 38 title 'Regression on the Mean of Y'; 39 run; WARNING: The variable _NAME_ or _TYPE_ exists in a data set that is not TYPE=CORR, COV, SSCP, etc. NOTE: 6 observations read. NOTE: 6 observations used in computations.