RBC_DataGen.mod (2.15 KB)Hi, I am a PHD student at French Polynesia University trying to learn Dynare

to run RBC_Est.mod (attached), you need simuldataRBC.m

this file should be generated by RBC_DataGen.mod (attached)

When you run it, dynare gives the following error messages:

Starting Dynare (version 4.4.3).

Starting preprocessing of the model file …

*ERROR: RBC_DataGen.mod: line 205, cols 32-46: syntax error, unexpected NAME
error: DYNARE: preprocessing failed
error: called from:
error: c:\dynare\4.4.3\matlab\dynare.m at line 174, column 5*

this problem has already reported in the forum:

File simuldataRBC : this reply gives corrected simuldataRBC.m (attached) and RBC_DataGen.mod which is taken back in Dynare Userguide (the code is the same)

So, you cannot have data generated for RBC_Est.mod

Let us try the simuldataRBC.m given by the 1477/reply and run RBC_Est.mod, you will have the following error messages:

Starting Dynare (version 4.4.3).

Starting preprocessing of the model file …

Found 9 equation(s).

Evaluating expressions…done

Computing static model derivatives:

- order 1

Computing dynamic model derivatives: - order 1
- order 2

Processing outputs …done

Preprocessing completed.

Starting MATLAB/Octave computing.

You did not declare endogenous variables after the estimation/calib_smoother command.

***MESSAGE FROM ROUTINE D9LGIT IN LIBRARY SLATEC.

***FATAL ERROR, PROG ABORTED, TRACEBACK REQUESTED

- NO CONVERGENCE IN 200 TERMS OF CONTINUED FRACTION
- ERROR NUMBER = 3

***END OF MESSAGE

***JOB ABORT DUE TO FATAL ERROR.

0 ERROR MESSAGE SUMMARY

LIBRARY SUBROUTINE MESSAGE START NERR LEVEL COUNT

SLATEC D9LGIT NO CONVERGENCE IN 20 3 2 1

error: Due to a bug in Octave, you must choose other values for mean and/or variance of your prior on psi, or use

another shape

error: called from:

error: c:\dynare\4.4.3\matlab\draw_prior_density.m at line 58, column 13

error: c:\dynare\4.4.3\matlab\plot_priors.m at line 55, column 38

error: c:\dynare\4.4.3\matlab\dynare_estimation_init.m at line 257, column 13

error: c:\dynare\4.4.3\matlab\dynare_estimation_1.m at line 81, column 63

error: c:\dynare\4.4.3\matlab\dynare_estimation.m at line 89, column 5

error: C:\dynare\4.4.3\models\RBC_Est.m at line 159, column 1

error: c:\dynare\4.4.3\matlab\dynare.m at line 180, column 1

So, I checked the content of simuldataRBC.m, it is c=[data] and not y which appears in line 17 varobs y;

replacing c by y does not work neither

**Many thanks for somebody to help me**

simuldataRBC.m (141 KB)

RBC_Est.mod (796 Bytes)