YWZHENG wrote:and how caculate the historical decomposition of CPI in page 20 of pass-through exchange.pdf.
thank you
The table would appear to be a decomposition of the change in the import price between 1995:4 and 1998:4. Given data through 1995:4, the projected change in U.S. import prices is .7, the actual change was -3.8. The difference between the two (-4.4 as they did the calculations) can be written as the sum of the cumulated effects of the six shocks during the period 1996:1 to 1998:4. The authors are grouping those six shocks into three sets of two, so the sums of the pairs are the left three columns.
The example in the RATS UG uses the ADD option, which is useful for graphing. For doing the calculation in the paper, it's better to use HISTORY without ADD. For the model in the UG, that would be:
history(model=canmodel,results=history,from=hstart,to=hend)
For variable J in the model (whose actual values are in series Y), and for any time period T+h (where T is the base period for the forecasts), the HISTORY series will satisfy (by construction)
HISTORY(1,J)(T+h)+HISTORY(2,J)(T+h)+...+HISTORY(7,J)(T+h)=Y(T+h)
The calculation in the paper subtracts the base observed value Y(T) from both sides to give:
(HISTORY(1,J)(T+h)-Y(T))+HISTORY(2,J)(T+h)+...+HISTORY(7,J)(T+h)=Y(T+h)-Y(T)
The first term on the left is the forecast changed; the right side is the actual change. The other summands on the left are grouped by twos and added together.