/************************************************************/ /* The initial code/statements to read in the data to allow */ /* students to complete problem set 2 on composites in SAS */ /* This is not a full solution. */ /************************************************************/ /* file: ps2sas.sas */ /* data: ps2dat.txt */ /* out: NA */ title 'SAS-Problem Set 2 -- Composites -- your name'; options nocenter; data ps2; infile 'a:\ps2dat.txt'; input x1 1 x2 3 y1 5 y2 7; run; proc iml; reset print; edit ps2; read all var {x1 x2} into x; read all var {y1 y2} into y; a={3,1}; c={-1,1}; d={2,4}; /* remaining IML statements, etc. */