Page 1 of 1

A problem after installing dynare version 4.0.2

PostPosted: Thu Nov 20, 2008 2:36 pm
by winifred
Before I installed dynare-4.0.2, i can run the codes in .mod file,

stoch_simul(hp_filter = 1600, order = 1);

statistic1 = 100*sqrt(diag(oo_.var(1:11,1:11)))./oo_.mean(1:11);

table('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),lgy_(1:11,:),statistic1,10,8,4)

After installing dynare-4.0.2, it doesn't work. It shows the error messange as below:

??? Undefined variable lgy_.

Error in ==> mymodel2 at 145
table('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),lgy_(1:11,:),statistic1,10,8,4)

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



Can someone help me. Many thanks!


Winifred

Re: A problem after installing dynare version 4.0.2

PostPosted: Tue Nov 25, 2008 9:08 am
by SébastienVillemot
Hi

I suppose you were using Dynare version 3 before installing version 4.0.2.

Some internal structures have changed inside Dynare, so you need to slightly modify your code.

Replacing "lgy_(1:11,:)" with "M_.endo_names(1:11,:)" should solve your problem.

Best

Sébastien

Re: A problem after installing dynare version 4.0.2

PostPosted: Fri Mar 19, 2010 1:37 am
by olguinma
Hi,

I' am relatively new using Dynare and also have the same problem runing the rbc.mod example in dynare 4:

??? Undefined variable lgy_.

Error in ==> rbc at 125
table('Relative standard deviations in %',strvcat('VARIABLE','REL.
S.D.'),lgy_(1:6,:),statistic1,10,8,4);

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


I dont understand how to solve this error. Do I need to change some file?

I have noticed that the structure of dynare is quiet different from v.3 but dont know what changes must do in order to run succesfuly this example.

Thanks.

olguinma.