Page 1 of 1

Measurement errors and bayesian estimation

PostPosted: Sun Aug 22, 2010 10:20 am
by aghaly
Hi,
I'm running a bayesian estimation and I include measurement errors in all my observables. I estimate these measurment errors as follow: say x_o is an observable, then I specify the following:
stderr x_o, gamma_pdf, 0.02,0.01;
The problem I experience is that I got the following error message which I don't get at all!

??? Undefined function or variable "ST".

Error in ==> DsgeSmoother at 193
[alphahat,epsilonhat,etahat,ahat,P,aK,PK,decomp] = ...

Error in ==> dynare_estimation_1 at 1118
[atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,T,R,P,PK,decomp] = DsgeSmoother(xparam1,gend,data,data_index,missing_value);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> RBC_AUG at 331
dynare_estimation(var_list_);

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


However when running the estimation ruling out these measu. errors eveything seems working quite good. Can someone tell me what is this message about?

Thanks!!!

Re: Measurement errors and bayesian estimation

PostPosted: Mon Aug 30, 2010 8:51 am
by SébastienVillemot
Hi,

This could be a bug in Dynare, but it’s hard to tell without your MOD file.

Which version of Dynare are you using? Could you post your MOD file?

Best,

Re: Measurement errors and bayesian estimation

PostPosted: Mon Sep 27, 2010 10:16 am
by aghaly
I'm using the last version which you provided us during the Dynare conference in June. I attached the mod file with the underlying data;
Thanks in advance and sorry for not having responded earlier.

BR, Aghaly!

Re: Measurement errors and bayesian estimation

PostPosted: Mon Oct 11, 2010 9:41 am
by SébastienVillemot
I can’t reproduce the problem with neither Dynare 4.1.2, nor Dynare unstable.

Which version are you using ? (type “dynare_version” at the MATLAB prompt).

Re: Measurement errors and bayesian estimation

PostPosted: Tue Oct 12, 2010 8:06 am
by aghaly
I'm using the version "dynare-2010-06-30". This is the version provided during the Dynare conference in June 2010.
Thanks in advance.
Aghaly

Re: Measurement errors and bayesian estimation

PostPosted: Tue Oct 12, 2010 8:11 am
by aghaly
Sorry again...It is just for a reminder .have you noticed that I disable the measurement errors during the estimation in the mod file I send you?? Probably you have to activate them again....
thks..

Re: Measurement errors and bayesian estimation

PostPosted: Wed Oct 13, 2010 12:18 pm
by SébastienVillemot
Please double check, but the MOD file that you posted here has measurement errors.

Also note that you probably should upgrade to the stable version of Dynare 4.1.2, or to the latest snapshot. The version that you have may contain bugs that were fixed since June 30.

Re: Measurement errors and bayesian estimation

PostPosted: Mon Oct 18, 2010 2:30 pm
by aghaly
Thanks a lot!!! I've updated my Dynare version and it works quite well....
BR, Agahly