Prior distribution for measurement errors

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.

Prior distribution for measurement errors

Postby measilva » Thu May 26, 2011 7:32 pm

Hi,

I am trying to set a small suport for uniform prior distribution. However, when I set a small support such as:

stderr gi_obs, uniform_pdf,,,0,0.01;

I got the following:
Code: Select all
??? Error using ==> chol
Matrix must be positive definite.

Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

Error in ==> random_walk_metropolis_hastings at 58
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar,
nblck, nruns, NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 871
                feval(options_.posterior_sampling_method,'DsgeLikelihood',options_.proposal_distribution,xparam1,invhess,bounds,gend,data,...
               
Error in ==> dynare_estimation at 62
    dynare_estimation_1(var_list,varargin{:});

Error in ==> new_formulation at 451
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;


On the other hand, if I set a support such as:
stderr gi_obs, uniform_pdf,,,0,0.1;

The estimation works fine. As far as I remember, the support for the uniform distribution, U[a,b], should work with any number from -inf<a,b<inf .

Am I missing something? Thanks
Marcelo
University of North Carolina
measilva
 
Posts: 31
Joined: Wed Mar 05, 2008 3:47 pm
Location: University of North Carolina

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests