SAMPLE 1 12 * Weekly stock prices for major car manufacturers. READ P1 P2 P3 P4 20.25 4.125 5.25 46.125 19.875 4.125 6.0 45.25 19.0 4.125 5.5 45.25 19.75 4.125 5.625 46.0 20.25 3.875 6.0 48.25 19.875 3.875 5.375 48.625 19.375 4.0 5.375 47.75 19.625 4.0 5.375 50.125 21.125 4.125 5.75 51.5 22.375 4.375 5.375 51.0 25.0 4.75 7.25 54.0 23.0 4.375 6.625 52.75 * Volume of shares, in hundreds of thousands, traded in each week. READ Q1 Q2 Q3 Q4 8.2 4.3 14.4 27.1 6.3 1.5 16.0 12.9 6.7 1.3 6.9 12.1 4.5 1.9 4.4 13.6 4.3 2.7 5.0 21.9 5.4 1.5 3.8 17.3 3.8 1.7 3.1 11.7 4.3 1.5 3.8 23.8 5.4 1.8 4.9 17.0 9.5 3.5 4.1 21.4 13.7 4.4 18.1 25.0 8.3 2.6 11.3 20.5 * Compute a price index for the 1st car manufacturer - base period is week 8. GEN1 PBASE1=P1:8 GENR PINDEX1=100*P1/PBASE1 * Compute an aggregate price index INDEX P1 Q1 P2 Q2 P3 Q3 P4 Q4 / BASE=8 LASPEYRES=PALL GENR PALL=100*PALL GENR OBS=TIME(0) FORMAT(F10.0,5X,2F13.2) PRINT OBS PINDEX1 PALL / FORMAT STOP