Measurement errors and bayesian estimation

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.

Measurement errors and bayesian estimation

Postby aghaly » Sun Aug 22, 2010 10:20 am

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!!!
aghaly
 
Posts: 16
Joined: Fri Mar 26, 2010 4:56 pm

Re: Measurement errors and bayesian estimation

Postby SébastienVillemot » Mon Aug 30, 2010 8:51 am

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,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Measurement errors and bayesian estimation

Postby aghaly » Mon Sep 27, 2010 10:16 am

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!
Attachments
CIV_NEW.m
(7.72 KiB) Downloaded 103 times
RBC_SEPT2010.mod
(5.02 KiB) Downloaded 176 times
aghaly
 
Posts: 16
Joined: Fri Mar 26, 2010 4:56 pm

Re: Measurement errors and bayesian estimation

Postby SébastienVillemot » Mon Oct 11, 2010 9:41 am

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).
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Measurement errors and bayesian estimation

Postby aghaly » Tue Oct 12, 2010 8:06 am

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
aghaly
 
Posts: 16
Joined: Fri Mar 26, 2010 4:56 pm

Re: Measurement errors and bayesian estimation

Postby aghaly » Tue Oct 12, 2010 8:11 am

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..
aghaly
 
Posts: 16
Joined: Fri Mar 26, 2010 4:56 pm

Re: Measurement errors and bayesian estimation

Postby SébastienVillemot » Wed Oct 13, 2010 12:18 pm

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.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Measurement errors and bayesian estimation

Postby aghaly » Mon Oct 18, 2010 2:30 pm

Thanks a lot!!! I've updated my Dynare version and it works quite well....
BR, Agahly
aghaly
 
Posts: 16
Joined: Fri Mar 26, 2010 4:56 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests