finding output gap by using Kalman filter.

Discussion of State Space and Dynamic Stochastic General Equilibrium Models
Brc
Posts: 19
Joined: Thu Jun 20, 2024 5:16 pm

finding output gap by using Kalman filter.

Unread post by Brc »

Hello,

I have GDP which is quarterly data from 1998:q1 to 2025:q1.

I am trying to find output gap by using Kalman filter. How can I write down its codes? or how can I find its codes?

Please help me to do this. Thank you.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: finding output gap by using Kalman filter.

Unread post by TomDoan »

What people usually do is to take the difference between (log) GDP and its HP filter. The HP filter is the Kalman smoothed output from a particular state-space model. See HPFILTER.RPF.
Post Reply