declaration to set up the endogenous variables

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

declaration to set up the endogenous variables

Postby ALLAH » Sun May 05, 2013 6:05 pm

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
ALLAH
 
Posts: 3
Joined: Sun May 05, 2013 5:41 pm

Re: declaration to set up the endogenous variables

Postby jpfeifer » Mon May 06, 2013 7:47 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: declaration to set up the endogenous variables

Postby ALLAH » Mon May 06, 2013 9:36 am

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
ALLAH
 
Posts: 3
Joined: Sun May 05, 2013 5:41 pm

Re: declaration to set up the endogenous variables

Postby jpfeifer » Wed May 08, 2013 5:42 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests