title 'dummy coding dataset'.
data list records=1
  /1 group 1  y 3-4.
begin data.
1 4
1 5
1 6
1 7
1 8
2 7
2 8
2 9
2 10
2 11
3 1
3 2
3 3
3 4
3 5
end data.
if (group=1) x1=1.
if (group ne 1) x1=0.
if (group=2) x2=1.
if (group ne 2) x2=0.
regression var=y,x1,x2/dependent=y/enter x1 x2.


10 Dec 97 SPSS for Unix, Release 5.0 (IBM RS/6000)                        Page 1
12:37:44  sigma.oac.ucla.edu             IBM RS/6000      IBM AIX 3.2.


For IBM AIX 3.2.        sigma.oac.ucla.edu                      SPSS ID 265665

-> title 'dummy coding dataset'.
-> data list records=1
->   /1 group 1  y 3-4.

This command will read 1 records from the command file

Variable   Rec   Start     End         Format

GROUP        1       1       1         F1.0
Y            1       3       4         F2.0

-> begin data.
-> 1 4
-> 1 5
-> 1 6
-> 1 7
-> 1 8
-> 2 7
-> 2 8
-> 2 9
-> 2 10
-> 2 11
-> 3 1
-> 3 2
-> 3 3
-> 3 4
-> 3 5
-> end data.

Preceding task required .00 seconds CPU time;  .06 seconds elapsed.

-> if (group=1) x1=1.
-> if (group ne 1) x1=0.
-> if (group=2) x2=1.
-> if (group ne 2) x2=0.
-> regression var=y,x1,x2/dependent=y/enter x1 x2.

There are 522,960 bytes of memory available.
The largest contiguous area has 522,608 bytes.

     1364 bytes of memory required for REGRESSION procedure.
        0 more bytes may be needed for Residuals plots.


10 Dec 97 dummy coding dataset                                            Page 2
12:37:52  sigma.oac.ucla.edu             IBM RS/6000      IBM AIX 3.2.


           * * * *   M U L T I P L E   R E G R E S S I O N   * * * *


Listwise Deletion of Missing Data

Equation Number 1    Dependent Variable..   Y

Block Number  1.  Method:  Enter      X1       X2


Variable(s) Entered on Step Number
   1..    X2
   2..    X1


Multiple R           .86603
R Square             .75000
Adjusted R Square    .70833
Standard Error      1.58114

Analysis of Variance
                    DF      Sum of Squares      Mean Square
Regression           2            90.00000         45.00000
Residual            12            30.00000          2.50000

F =      18.00000       Signif F =  .0002


------------------ Variables in the Equation ------------------

Variable              B        SE B       Beta         T  Sig T

X2             6.000000    1.000000   1.000000     6.000  .0001
X1             3.000000    1.000000    .500000     3.000  .0111
(Constant)     3.000000     .707107                4.243  .0011


End Block Number   1   All requested variables entered.
10 Dec 97 dummy coding dataset                                            Page 3
12:37:52  sigma.oac.ucla.edu             IBM RS/6000      IBM AIX 3.2.


Preceding task required .03 seconds CPU time;  .07 seconds elapsed.