在利用Dynare做练习时,可能会遇到一些错误提示,许多提示的原因可能不是模型设定这种较大的错误,其中的错误可能非常微小,下面罗列了一些常见的错误提示以及比较有可能的“微小”的错误原因。
Dynare常见错误提示及其可能原因
出错表现 | 出错的可能原因 |
can't open … | mod文件不在当前目录下 |
Unknown symbol | 某个变量没有声明 |
syntax error, unexpected NAME | 某个语句少了分号“;” |
syntax error, unexpected ';' | 该行某个地方少了“)” |
Blanchard Kahn conditions are not satisfied | Model部分,某个方程写“错” |
character unrecognized by lexer | 某些地方用了中文标点等 |
maximum number of iterations is reached | exp形式下,某个变量Z没有表示成exp(z) |
Undefined function or method 'dyanre' for input arguments of type 'char'. | Dynare 文件名错误 |
numerical initial values incompatible with the following equations | 某个参数没有赋值 |
STEADY: convergence problems | 方程某个地方写错 |