1                                The SAS System    01:15 Saturday, April 2, 2005

NOTE: Copyright (c) 1999-2000 by SAS Institute Inc., Cary, NC, USA. 
NOTE: SAS (r) Proprietary Software Release 8.1 (TS1M0)
      Licensed to DUKE UNIVERSITY, Site 0009733001.
NOTE: This session is executing on the WIN_PRO  platform.



WARNING: Your system is scheduled to expire on May 1, 2005, which is 29 days 
         from now.  Please contact your SAS Software Representative to obtain 
         your updated SETINIT information.  The SAS System will no longer 
         function on or after that date.
WARNING: The Base Product product with which Session Manager is associated will 
         expire within 30 days. Please contact your SAS installation 
         representative to have it renewed.
WARNING: The Base Product product with which Program electric.sas is associated 
         will expire within 30 days. Please contact your SAS installation 
         representative to have it renewed.
NOTE: SAS initialization used:
      real time           0.35 seconds
      cpu time            0.24 seconds
      
1          data raw;
WARNING: The Base Product product with which DATASTEP is associated will expire 
         within 30 days. Please contact your SAS installation representative to 
         have it renewed.
2            infile "electa.dat";
3            input t1 treat base inter peak expend;
4            infile "electc1.dat";
5            input t2 famsize income sqfeet heatlos range wash dry cac wac;
6            infile "electc2.dat";
7            input t3 single duplex mobile hwh frez ref;
8            t=t1;
9            if (t ne t2) or (t ne t3) then put 'error reading data ' t1 t2 t3;
10           drop t1 t2 t3;
11         

NOTE: The infile "electa.dat" is:
      File Name=S:\electric\electa.dat,
      RECFM=V,LRECL=256

NOTE: The infile "electc1.dat" is:
      File Name=S:\electric\electc1.dat,
      RECFM=V,LRECL=256

NOTE: The infile "electc2.dat" is:
      File Name=S:\electric\electc2.dat,
      RECFM=V,LRECL=256

NOTE: 224 records were read from the infile "electa.dat".
      The minimum record length was 74.
      The maximum record length was 74.
NOTE: 224 records were read from the infile "electc1.dat".
      The minimum record length was 80.
2                                The SAS System    01:15 Saturday, April 2, 2005

      The maximum record length was 80.
NOTE: 224 records were read from the infile "electc2.dat".
      The minimum record length was 74.
      The maximum record length was 74.
NOTE: The data set WORK.RAW has 224 observations and 21 variables.
NOTE: DATA statement used:
      real time           0.04 seconds
      cpu time            0.03 seconds
      

12         data electric;
WARNING: The Base Product product with which DATASTEP is associated will expire 
         within 30 days. Please contact your SAS installation representative to 
         have it renewed.
13           set raw;
14           if treat=1 then do;  p1=3.90; p2=2.86; p3=1.06;  end;
15           if treat=2 then do;  p1=3.90; p2=2.86; p3=1.78;  end;
16           if treat=3 then do;  p1=3.90; p2=3.90; p3=1.06;  end;
17           if treat=4 then do;  p1=3.90; p2=3.90; p3=1.78;  end;
18           if treat=5 then do;  p1=5.06; p2=3.34; p3=1.37;  end;
19           if treat=6 then do;  p1=6.56; p2=2.86; p3=1.06;  end;
20           if treat=7 then do;  p1=6.56; p2=2.86; p3=1.78;  end;
21           if treat=8 then do;  p1=6.56; p2=3.90; p3=1.06;  end;
22           if treat=9 then do;  p1=6.56; p2=3.90; p3=1.78;  end;
23           y1=log(peak/base);
24           y2=log(inter/base);
25           y3=log(expend);
26           x1=log(p1/expend);
27           x2=log(p2/expend);
28           x3=log(p3/expend);
29           r1=log(p1);
30           r2=log(p2);
31           r3=log(p3);
32           d0=1;
33           d1=log((10*p1+6*p2+8*p3)/24);
34           d2=log(income);
35           d3=log(sqfeet);
36           d4=duplex;
37           d5=mobile;
38           d6=cac*log(heatlos);
39           d7=0; if wac>0 then d7=log(wac);
40           d8=0; if hwh>0 then d8=log(famsize+1);
41           d9=0; if (hwh>0) & (wash>0) then d9=1;
42           d10=0; if dry>0 then d10=log(famsize+1);
43           d11=0; if ref>0 then d11=log(ref);
44           d12=0; if frez>0 then d12=log(frez);
45           d13=range;
46           keep y1 y2 y3 x1 x2 x3 r1 r2 r3
47             d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13;
48         

NOTE: Missing values were generated as a result of performing an operation on 
      missing values.
3                                The SAS System    01:15 Saturday, April 2, 2005

      Each place is given by: (Number of times) at (Line):(Column).
      4 at 34:6    3 at 35:6    3 at 38:9    3 at 38:10   
NOTE: There were 224 observations read from the data set WORK.RAW.
NOTE: The data set WORK.ELECTRIC has 224 observations and 23 variables.
NOTE: DATA statement used:
      real time           0.01 seconds
      cpu time            0.01 seconds
      

49         proc print data=electric;
WARNING: The Base Product product with which PRINT is associated will expire 
         within 30 days. Please contact your SAS installation representative to 
         have it renewed.
50           var y1 y2 x1 x2 x3;
51         

NOTE: There were 224 observations read from the data set WORK.ELECTRIC.
NOTE: The PROCEDURE PRINT printed pages 1-5.
NOTE: PROCEDURE PRINT used:
      real time           0.03 seconds
      cpu time            0.01 seconds
      

52         data tmp;
WARNING: The Base Product product with which DATASTEP is associated will expire 
         within 30 days. Please contact your SAS installation representative to 
         have it renewed.
53           set electric;
54           file "electric.dat";
55           put y1 20.16 y2 20.16 x1 20.16 x2 20.16 x3 20.16;
56         

NOTE: The file "electric.dat" is:
      File Name=S:\electric\electric.dat,
      RECFM=V,LRECL=256

NOTE: 224 records were written to the file "electric.dat".
      The minimum record length was 100.
      The maximum record length was 100.
NOTE: There were 224 observations read from the data set WORK.ELECTRIC.
NOTE: The data set WORK.TMP has 224 observations and 23 variables.
NOTE: DATA statement used:
      real time           0.01 seconds
      cpu time            0.00 seconds
      

NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
      real time           0.50 seconds
      cpu time            0.32 seconds
      
