Attempted to access k(1); index out of bounds because numel(

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Attempted to access k(1); index out of bounds because numel(

Postby tianhumeng » Wed Apr 13, 2011 12:55 pm

I was trying to replicate the Funke and Paetz 2010 paper . But I keep on getting the following error:

Attempted to access k(1); index out of bounds because numel(k)=0.
Does anyone know what this error relates to?
Thanks in advance.
Attachments
model.mod
(11.28 KiB) Downloaded 137 times
tianhumeng
 
Posts: 1
Joined: Fri Apr 02, 2010 11:15 am

Re: Attempted to access k(1); index out of bounds because nu

Postby SébastienVillemot » Mon May 02, 2011 10:24 am

The crash comes from the fact that for some parameters, you assign a prior mean of 2 with a beta distribution. But the beta distribution is over the [0,1] interval.

I admit that the error message is not very explicit, we will put a better message in the future versions of Dynare.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests