Page 1 of 1

declaration to set up the endogenous variables

PostPosted: Sun May 05, 2013 6:05 pm
by ALLAH
Hello everyone
I specified the endogenous variables in the model: var y , c, k , h , a , b; and i had this error message:
error:var:X must be a numeric vector or matrix
error:called from:
error:C:\Octave\3.6.4\share\Octave\3.6.4\m\statistics\base\var.m at line 68,column 5
Can anyone explain me what is the problem?
Thank you

Re: declaration to set up the endogenous variables

PostPosted: Mon May 06, 2013 7:47 am
by jpfeifer
Did you write your code into a mod-file (not and m-file), set the path to Dynare, and call it with
Code: Select all
dynare modfilename

Currently, Octave take the var-command not as a Dynare declaration, but as an Octave command to compute the variance.

Re: declaration to set up the endogenous variables

PostPosted: Mon May 06, 2013 9:36 am
by ALLAH
Thank you jpfeifer for your reply
How can i create this mod file in dynare
I'm working with octave 3.6.4 and then i wrote addpath c: \dynare\4.3.3\matlab
But i don't know how to create a mod file into dynare
Thank you in advance

Re: declaration to set up the endogenous variables

PostPosted: Wed May 08, 2013 5:42 am
by jpfeifer
Use any text editor to write the code, save the text file with the ending .mod, use the addpath and then run it in dynare using the command
Code: Select all
dynare modfilename

See Chapter 3 of the manual.