Problem with the estimation of MSVAR examples

Discussion of models with structural breaks or endogenous switching.

Problem with the estimation of MSVAR examples

Postby condor » Fri Jan 13, 2012 6:17 am

When I try to run the MSVAR example files of Krolzig (1997) without changing anything, I receive the following error message:

"SX11. Identifier EMPTSM is Not Recognizable. Incorrect Option Field or Parameter Order?
>>>>VARMarginal(EMPTSM(<<<<

I am not sure if I am doing anything wrong...
condor
 
Posts: 15
Joined: Fri Apr 10, 2009 4:11 pm

Re: Problem with the estimation of MSVAR examples

Postby TomDoan » Fri Jan 13, 2012 12:38 pm

That should now be MSVARPTSM rather than EMPTSM.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Problem with the estimation of MSVAR examples

Postby condor » Tue Feb 28, 2012 4:48 am

Filardo (1994) example also yields error messages regarding EMSize and EMLagState:

## SX11. Identifier EMSIZE is Not Recognizable. Incorrect Option Field or Parameter Order?
>>>> do k=1,EMSize<<<<

## SX11. Identifier EMLAGSTATE is Not Recognizable. Incorrect Option Field or Parameter Order?
>>>>isEntry(EMLagState(<<<<
condor
 
Posts: 15
Joined: Fri Apr 10, 2009 4:11 pm

Re: Problem with the estimation of MSVAR examples

Postby TomDoan » Wed Feb 29, 2012 11:33 am

I just posted an updated version of the Filardo program.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Problem with the estimation of MSVAR examples

Postby condor » Thu Mar 01, 2012 5:48 am

Hi Tom,

Thanks for the post, but it still gives the same error message. I think it has something to do with the following part:
Code: Select all
   do time=start,end
      compute %MSVARPMat(time)
      compute thisEntry=%zeros(nstates,nstates)
      do k=1,EMSize
         compute thisEntry(EMLagState(k,1),EMLagState(k,2))+=EMPTSM(time)(k)
      end do k
      compute w11(time)=p(1,1)*(1-p(1,1))*(thisEntry(1,1)+thisEntry(2,1))
      compute w22(time)=p(1,2)*(1-p(1,2))*(thisEntry(2,2)+thisEntry(1,2))
      compute l11(time)=(thisEntry(1,1)-   p(1,1)*(thisEntry(1,1)+thisEntry(2,1)))/w11(time)
      compute l22(time)=(thisEntry(2,2)-(1-p(1,2))*(thisEntry(2,2)+thisEntry(1,2)))/w22(time)
   end do time

I am not sure, but it feels like EMSize and EMLagState should be replaced with MSVARFilterSize and MSVARFilterLagState respectively...
condor
 
Posts: 15
Joined: Fri Apr 10, 2009 4:11 pm

Re: Problem with the estimation of MSVAR examples

Postby TomDoan » Thu Mar 01, 2012 4:29 pm

condor wrote:I am not sure, but it feels like EMSize and EMLagState should be replaced with MSVARFilterSize and MSVARFilterLagState respectively...


Sorry. That's correct. I just posted a fully corrected version.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Problem with the estimation of MSVAR examples

Postby Aktar » Tue Mar 06, 2012 7:00 am

it seems to be also the case in the Replication file for Krolzig's "International Business Cycles: Regime
Shifts in the Stochastic Process of Economic Growth.
Aktar
 
Posts: 35
Joined: Thu Apr 16, 2009 8:12 am

Re: Problem with the estimation of MSVAR examples

Postby condor » Tue Mar 06, 2012 10:30 am

Aktar wrote:it seems to be also the case in the Replication file for Krolzig's "International Business Cycles: Regime Shifts in the Stochastic Process of Economic Growth.

Yes, but Tom has already proposed the remedy to this problem. Please see the second post under this thread: viewtopic.php?f=30&t=1302#p4728
condor
 
Posts: 15
Joined: Fri Apr 10, 2009 4:11 pm

Re: Problem with the estimation of MSVAR examples

Postby TomDoan » Wed Mar 07, 2012 2:03 pm

Aktar wrote:it seems to be also the case in the Replication file for Krolzig's "International Business Cycles: Regime
Shifts in the Stochastic Process of Economic Growth.


It looks as if we never had those posted on the forum. Current versions are now at:

http://www.estima.com/forum/viewtopic.php?f=30&t=1362
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Structural Breaks and Switching Models

Who is online

Users browsing this forum: No registered users and 1 guest

cron