Dynamic factor model

Discussion of State Space and Dynamic Stochastic General Equilibrium Models
superahcn
Posts: 1
Joined: Fri Oct 19, 2018 10:30 am

Dynamic factor model

Unread post by superahcn »

I am doing the Stock-Watson dynamic factor model. I have found 2 versions of the codes and found that the results are quite different. In particular, the filtered series and the smoothed series are very different in using the Version 2 of the programme. Given the Version 2 code allows me to change the number of variables, I would like to use it. Could you help me to check whether I made something wrong in the Version 2 code? Thank you.
Attachments
Rats_Data.xlsx
Data
(20.57 KiB) Downloaded 861 times
CN_Mon_WB.rpf
Version 2
(4.63 KiB) Downloaded 1002 times
CN_Mon_SW_indicator.rpf
Version 1
(3.76 KiB) Downloaded 995 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Dynamic factor model

Unread post by TomDoan »

The mu=beta option is missing on the TYPE=SMOOTH instruction in the WB version.
hasanov
Posts: 46
Joined: Tue May 29, 2012 7:31 pm

Re: Dynamic factor model

Unread post by hasanov »

Hi Tom,

Where can I find the original RATS code for dynamic factor models?

Thanks
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Dynamic factor model

Unread post by TomDoan »

I'm not sure what you mean. The SW_INDICATOR is the older version. The newer version has that minor error in the smoothing that you discovered.
Post Reply