*************************************************************** ** The initial code/statements to read in the data to allow ** ** students to complete problem set 2 on composites in SPSS ** ** This is not a full solution. ** *************************************************************** ** file: ps2sps.sps ** ** data: ps2dat.txt ** ** out: NA ** title "SPSS-Problem Set 2 - Composites -- your name". data list file='a:\ps2dat.txt' /x1 1 x2 3 y1 5 y2 7. matrix. get x/var=x1 x2. get y/var=y1 y2. compute a={3;1}. compute c={-1;1}. compute d={2;4}. ** rest of matrix statements etc. go here ** end matrix.