This paper shows how to use the Kalman filter (Kalman 1960) to back out the shocks of a dynamic stochastic general equilibrium model. In particular, we use the smoothing algorithm as described in Hamilton (1994) to estimate the shocks of a sticky-prices and sticky-wages model using all the...