Can not open Dynar:Octave3.2.2 and Dynare4.0.3 in Ubuntu9.10

Hi, I am new to Dynare and Octave. After installation of Octave3.2.2 and Dynare4.0.3 in Ubuntu9.10, I can not open Dynare.
Thank you for your help!

exel

error information is below:

octave-3.2.2:9> addpath /usr/lib/dynare/matlab
octave-3.2.2:10> mark_as_command dynare
octave-3.2.2:11> cd /home/pgh/jfvrbc
octave-3.2.2:12> dynare rbc.mod
error: dynare' undefined near line 12 column 1 octave-3.2.2:12> dir . rbc.pdf rbc_indivisible_cu.mod .. rbc_cooley.mod rbc_investment.mod examples rbc_cu.mod rbc_investment1.mod models rbc_home.mod rbc_investment2.mod rbc.mod rbc_indivisible.mod rbc_monopolistic.mod octave-3.2.2:13> dynare rbc.mod error:dynare’ undefined near line 13 column 1

Hi,

First note the Dynare package in Ubuntu 9.10 depends on Octave 3.0. It will probably not work out of the box with Octave 3.2.

Second the addpath command is:

addpath /usr/share/dynare/matlab

Hope this helps.

Best,

Thank you. It seems good.
But why the manual said: (dynare.org/manual/ch02s03.html#id382292)
Under Debian GNU/Linux or Ubuntu, type:

addpath /usr/lib/dynare/matlab

Is it a misleading?

exel

octave-3.2.2:1> addpath /usr/share/dynare/matlab
octave-3.2.2:2> mark_as_command
warning: mark_as_command is obsolete and will be removed from a future version of Octave
octave-3.2.2:3> cd /home/pgh/jfvrbc
octave-3.2.2:4> dir
. rbc.pdf rbc_investment.mod
… rbc_cooley.mod rbc_investment1.mod
examples rbc_cu.mod rbc_investment2.mod
models rbc_home.mod rbc_monopolistic.mod
octave-core rbc_indivisible.mod
rbc.mod rbc_indivisible_cu.mod
octave-3.2.2:5> dynare rbc.mod

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

Starting Dynare …
Starting preprocessing of the model file …
7 equation(s) found
Processing derivation …
Processing Order 1… done
Processing outputs …
Preprocessing completed.
Starting Matlab computing …

STEADY-STATE RESULTS:

y 1.0301
c 0.793902
k 10.2696
i 0.236201
l 0.331892
y_l 3.10373
z 0

MODEL SUMMARY

Number of variables: 7
Number of stochastic shocks: 1
Number of state variables: 2
Number of jumpers: 3
Number of static variables: 3

MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS

Variables e
e 0.000109

POLICY AND TRANSITION FUNCTIONS
y i y_l k z c l
Constant 1.030103 0.236201 3.103727 10.269592 0 0.793902 0.331892
k (-1) 0.016113 -0.025554 0.124945 0.951446 0 0.041667 -0.008169
z (-1) 0.971376 0.766311 1.506992 0.766311 0.950000 0.205065 0.151823
e 1.022501 0.806643 1.586308 0.806643 1.000000 0.215858 0.159814

THEORETICAL MOMENTS (HP filter, lambda = 1600)

VARIABLE MEAN STD. DEV. VARIANCE
y 1.0301 0.0140 0.0002
c 0.7939 0.0034 0.0000
k 10.2696 0.0387 0.0015
i 0.2362 0.0110 0.0001
l 0.3319 0.0022 0.0000
y_l 3.1037 0.0223 0.0005
z 0.0000 0.0136 0.0002

MATRIX OF CORRELATIONS (HP filter, lambda = 1600)

Variables y c k i l y_l z
y 1.0000 0.9001 0.3510 0.9910 0.9821 0.9849 0.9990
c 0.9001 1.0000 0.7238 0.8335 0.8021 0.9620 0.8798
k 0.3510 0.7238 1.0000 0.2222 0.1685 0.5079 0.3088
i 0.9910 0.8335 0.2222 1.0000 0.9985 0.9527 0.9960
l 0.9821 0.8021 0.1685 0.9985 1.0000 0.9347 0.9896
y_l 0.9849 0.9620 0.5079 0.9527 0.9347 1.0000 0.9762
z 0.9990 0.8798 0.3088 0.9960 0.9896 0.9762 1.0000

COEFFICIENTS OF AUTOCORRELATION (HP filter, lambda = 1600)

Order 1 2 3 4 5
y 0.7176 0.4780 0.2790 0.1178 -0.0090
c 0.8043 0.6152 0.4385 0.2783 0.1373
k 0.9588 0.8596 0.7225 0.5643 0.3981
i 0.7075 0.4621 0.2605 0.0992 -0.0260
l 0.7060 0.4597 0.2578 0.0965 -0.0285
y_l 0.7430 0.5182 0.3257 0.1648 0.0338
z 0.7133 0.4711 0.2711 0.1098 -0.0163
error: `lgy_’ undefined near line 119 column 75
error: evaluating argument list element number 3
error: evaluating argument list element number 1
error: called from:
error: /home/pgh/jfvrbc/rbc.m at line 119, column 1
error: /usr/share/dynare/matlab/dynare.m at line 104, column 1
octave-3.2.2:5> dir
. rbc.mod rbc_indivisible.mod
… rbc.pdf rbc_indivisible_cu.mod
examples rbc_IRF_e.eps rbc_investment.mod
models rbc_cooley.mod rbc_investment1.mod
octave-core rbc_cu.mod rbc_investment2.mod
rbc.log rbc_dynamic.m rbc_monopolistic.mod
rbc.m rbc_home.mod rbc_static.m

[quote=“exel”]Thank you. It seems good.
But why the manual said: (dynare.org/manual/ch02s03.html#id382292)
Under Debian GNU/Linux or Ubuntu, type:

addpath /usr/lib/dynare/matlab

Is it a misleading?
[/quote]

Yes, the manual is wrong here and refers to a previous version of the Debian/Ubuntu packages. We should fix it soon.

This error is related to the fact that the variable lgy_ no longer exists in Dynare 4. You hit a code which is meant for Dynare 3. We should also fix this.

Best,