MATLAB STEADY STATE FILE MULTI-COUNTRY

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.

MATLAB STEADY STATE FILE MULTI-COUNTRY

Postby sanga » Fri Jul 18, 2014 5:00 pm

Hi,
I need to use the Matlab steady state file to solve my multi-country model, but the error message is the following:

??? Undefined function or variable 'yss_1'.
Error in ==> mymodel at 455
oo_.steady_state( 1 ) = yss_1;

PLEASE, someone can help me in order to call the steady state file?
The files are herewith.
Attachments
multi.rar
(549.73 KiB) Downloaded 81 times
sanga
 
Posts: 24
Joined: Sat Mar 31, 2012 8:50 pm

Re: MATLAB STEADY STATE FILE MULTI-COUNTRY

Postby jpfeifer » Sun Jul 20, 2014 7:35 am

You added an initval block to your mod-file that tries to access yss_1, which has not been defined. If you are using a correct steady state file that produces the correct analytical steady state, you can simple delete the initval block.
------------
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: MATLAB STEADY STATE FILE MULTI-COUNTRY

Postby sanga » Tue Jul 22, 2014 2:18 pm

Thanks Jpfeifer for your reply,
I corrected this but the problem remain. Can you, please, verify for me if the steady state file is correctly specified in terms of macro-processor?
Best,
sanga
 
Posts: 24
Joined: Sat Mar 31, 2012 8:50 pm

Re: MATLAB STEADY STATE FILE MULTI-COUNTRY

Postby jpfeifer » Wed Jul 23, 2014 8:47 am

You must do that yourself. You can see the resulting steady state file as a matlab m-file in your folder after running the preprocessor. You can use F9 in Matlab to execute selected parts of the code. Note that your problem does not stem from the steady state file but from the initval-block. To see what the preprocessor does, use the
Code: Select all
 [savemacro[=macro_file]]

option of the preprocessor. See 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: No registered users and 5 guests