Page 1 of 1

how to skip an error message

PostPosted: Fri Aug 10, 2012 3:43 pm
by Susana
Hi all!

I am trying to compute the posterior mode in a bayesian estimation starting from different initial parameter values (randomly sampled from a uniform distribution) just to make sure I obtain the highest mode. For some initial values, I get the error message "Initial parameter values are outside parameter bounds". Does anybody know how could I tell Dynare to skip this set of initial values and continue to the next set? Thanks!

Re: how to skip an error message

PostPosted: Wed Aug 15, 2012 2:29 pm
by jpfeifer
Use the Matlab try-catch construct.