by p.gelain » Thu Mar 20, 2008 11:42 am
Dear Abhishek
if your model is expressed in terms of log deviation for the steady state, your data should reflect that fact. The empirical counter part of the output gap is the difference between the observed data and some smooth function of time (or in other words a time trend). You can use the HP filter to obtain that trend. This is because it is common to consider the mean of a series the steady state level of the series itself. If the series has a trend (like the gdp), the mean is increasing over time, so the steady state as well. If you want the log deviation, simply apply the filter to the log of the series and than subtract it from the log of the series.
As for the inflation rate, if you have the price level, just take the logarithm of it, make the first differences and you will have the inflation rate (if you have quarterly data and you want the annual inflation rate, take ln(P[t])-ln([Pt-4]), while if you want the annualized inflation rate take {ln(P[t])-ln([Pt-1])}*4). For series that have not a trend (and inflation should not have a trend, although Smets and Wuoter remove a linear trend from their series of inflation), their steady state is simply the mean. Hence, again you should demean the series of inflation before estimate the model.
Cheers
Paolo Gelain