Sinclair’s paper, JMCB, 2009

Use this forum for posting example programs or short bits of sample code.

Sinclair’s paper, JMCB, 2009

Postby unforgiven02 » Fri Oct 30, 2009 10:37 am

Hi all,
i wish to replicate Sinclair’s paper (The Relationships between Permanent and Transitory Movements in U.S. Output and the Unemployment Rate, Journal of Money, Credit and Banking,2009) using rats. Any suggestions?

i've included the data file.
Attachments
data.txt
(3.79 KiB) Downloaded 142 times
unforgiven02
 
Posts: 4
Joined: Sat May 16, 2009 1:26 pm

Re: Sinclair’s paper, JMCB, 2009

Postby tclark » Mon Nov 02, 2009 2:39 pm

The author has made her data and a Gauss program available on her web page: http://home.gwu.edu/~tsinc/yu.zip
Todd Clark
Economic Research Dept.
Federal Reserve Bank of Kansas City
tclark
 
Posts: 14
Joined: Wed Nov 08, 2006 4:20 pm

Re: Sinclair’s paper, JMCB, 2009

Postby TomDoan » Mon Nov 02, 2009 6:41 pm

This will do it. It's a bit of overkill, as I tried a few things (other than brute force with something like PMETHOD=GENETIC) to locate the published estimates. The covariance matrix of the shocks in the joint model is very close to being singular which causes some numerical problems.

sinclair.prg
(5.79 KiB) Downloaded 185 times
TomDoan
 
Posts: 1052
Joined: Wed Nov 01, 2006 5:36 pm

Re: Sinclair’s paper, JMCB, 2009

Postby unforgiven02 » Tue Nov 03, 2009 5:54 pm

Thank you very much Tom Doan for your help and Todd Clark for your comment. It's a great contribution..but when i run the program, Rats has closed itself, i tried many times but result is the same so i wasn't able to replicate the model using rats program. The version i'am using is 7.0, is this happen due to the version incompatibility?

Best.
unforgiven02
 
Posts: 4
Joined: Sat May 16, 2009 1:26 pm

Re: Sinclair’s paper, JMCB, 2009

Postby condor » Fri Nov 06, 2009 7:29 am

I encountered the same problem. As far as I understand, the problem seems to occur from the following specification:
Code: Select all
* This estimates the model with the pre-sample conditions used in the paper
*
dlm(start=DLMYUModelSetup(),a=ayu,z=zyu,sw=swyu,c=cyu,f=fyu,y=||lgdp,ur||,$
  x0=x0,sx0=sx0,condition=4,parmset=jparms,pmethod=simplex,piters=5,method=bfgs,type=smooth)

It may seem a little bit ironic, but the code works perfectly if you skip these lines and estimate the model "with the more technically correct handling".
condor
 
Posts: 6
Joined: Fri Apr 10, 2009 4:11 pm

Re: Sinclair’s paper, JMCB, 2009

Postby unforgiven02 » Sat Nov 07, 2009 3:57 am

Even if i skip the lines shown by condor, the problem occurs again, the code doesn't work and rats shut down itself. I'm running rats line by line and rats shut down between the lines 55-60 before the lines condor indicated.
unforgiven02
 
Posts: 4
Joined: Sat May 16, 2009 1:26 pm

Re: Sinclair’s paper, JMCB, 2009

Postby moderator » Mon Nov 09, 2009 11:26 am

You'll need version 7.2 (or later) to run that code. Version 7.2 includes a fix for the bug that causes that DLM instruction to fail.

Regards,
Tom Maycock
moderator
Site Admin
 
Posts: 155
Joined: Thu Oct 19, 2006 4:33 pm


Return to Examples and Sample Code

Who is online

Users browsing this forum: No registered users and 0 guests

cron