Page 1 of 1

Help me, please with error Unexpected MATLAB expression.

PostPosted: Sat Mar 09, 2013 5:58 pm
by kokotaro
I don't know what is happenning with my model. It says:
Error using dynare (line 120)
Error: Unexpected MATLAB expression.

Please tell me what does it mean? What should i do to solve it?
.

Re: Help me, please with error Unexpected MATLAB expression.

PostPosted: Sun Mar 10, 2013 8:59 am
by jpfeifer
Filenames in Matlab must always start with a letter, never with a number.

Re: Help me, please with error Unexpected MATLAB expression.

PostPosted: Mon Mar 11, 2013 8:50 am
by kokotaro
Thanks for your help. I have re-written, but it still has errors. It said:
Error using print_info (line 57)
Impossible to find the steady state. Either the model
doesn't have a steady state, there are an infinity of steady
states, or the guess values are too far from the solution

Error in steady (line 92)
print_info(info,options_.noprint);

Error in Untitled5 (line 925)
steady;

Error in dynare (line 120)
evalin('base',fname) ;

What should i do? maybe i have to re-write steady state, but i don't know how can i write about it. OMG!!! Help me, please!!!

Re: Help me, please with error Unexpected MATLAB expression.

PostPosted: Mon Mar 11, 2013 9:32 am
by jpfeifer
Put resid(1); before steady to see the residuals and upgrade your Dynare version to see better warnings. You need to provide better starting values and correctly compute some of them. The output is
Code: Select all
Warning: Some of the parameters have no value (w_D_ss, w_F_ss, n_D_ss, n_F_ss, h_D_ss, h_F_ss, B_D_ss, B_F_ss) when using steady. If these
parameters are not initialized in a steadystate file, Dynare may not be able to solve the model...
> In test_for_deep_parameters_calibration at 46
  In steady at 33
  In kokotaro at 929
  In dynare at 114
STEADY:  numerical initial values or parameters incompatible with the following equations
     5     7     8    10    11    12    15    18    31    49    54    55    56    57    58    59    62    65

Please check for example
   i) if all parameters occurring in these equations are defined
  ii) that no division by an endogenous variable initialized to 0 occurs
 
 
 
 
Residuals of the static equations:
 
Equation number 1 : 0
Equation number 2 : -0.20503
Equation number 3 : 0.44586
Equation number 4 : 0
Equation number 5 : NaN
Equation number 6 : 0.0075
Equation number 7 : NaN
Equation number 8 : NaN
Equation number 9 : 0
Equation number 10 : NaN
Equation number 11 : NaN
Equation number 12 : NaN
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : NaN
Equation number 16 : 0.0028722
Equation number 17 : 0.1706
Equation number 18 : NaN
Equation number 19 : 4.2705
Equation number 20 : 0.0094857
Equation number 21 : 0
Equation number 22 : -0.20503
Equation number 23 : 0.44586
Equation number 24 : 0.37923
Equation number 25 : 0
Equation number 26 : -14.1543
Equation number 27 : -14.1543
Equation number 28 : -5.2051
Equation number 29 : 0
Equation number 30 : 0
Equation number 31 : NaN
Equation number 32 : -931.1718
Equation number 33 : 214.1016
Equation number 34 : 0
Equation number 35 : 0.88734
Equation number 36 : 270.9114
Equation number 37 : 0
Equation number 38 : 0
Equation number 39 : 0
Equation number 40 : 0
Equation number 41 : 0
Equation number 42 : 0
Equation number 43 : 0
Equation number 44 : 0
Equation number 45 : 0
Equation number 46 : 0
Equation number 47 : -1547.2707
Equation number 48 : 477.0619
Equation number 49 : NaN
Equation number 50 : 20213636.4543
Equation number 51 : 1.6025
Equation number 52 : 1.2771
Equation number 53 : 0.75
Equation number 54 : NaN
Equation number 55 : NaN
Equation number 56 : NaN
Equation number 57 : NaN
Equation number 58 : NaN
Equation number 59 : NaN
Equation number 60 : 0
Equation number 61 : 0
Equation number 62 : NaN
Equation number 63 : 0
Equation number 64 : -1
Equation number 65 : NaN
Equation number 66 : 0.0094857
Equation number 67 : 0
Equation number 68 : -0.20503
Equation number 69 : 0.44586
Equation number 70 : 0.37923
Equation number 71 : 0
Equation number 72 : 5.0533
Equation number 73 : 143723.1362
Equation number 74 : 141156.8003
Equation number 75 : -489.7536
Equation number 76 : 0.3174
Equation number 77 : -0.32654
Equation number 78 : -268.0101
Equation number 79 : 0.87234
Equation number 80 : 0
Equation number 81 : 0
Equation number 82 : 0
Equation number 83 : 0
Equation number 84 : 0
Equation number 85 : 5.8805e-06
Equation number 86 : 0
Equation number 87 : 0.85569
Equation number 88 : 0
Equation number 89 : 0
Equation number 90 : -1.1105
Equation number 91 : -1547.2707
Equation number 92 : -2.9624
Equation number 93 : 1530.715

Re: Help me, please with error Unexpected MATLAB expression.

PostPosted: Sat Mar 16, 2013 6:11 am
by kokotaro
Thank you so much. I will try to find another steady state.