Loading data in dynare++

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.

Loading data in dynare++

Postby andwes » Sat Aug 07, 2010 2:36 pm

Hello !

I have a question regarding how to load data (used for starting values) when using dynare++. The starting values I want to use is genereated by a Matlab program (not using dynare). I have a big model and thus do not want to enter starting values by hand in the mod file. First, I entered the starting values as a vector in the mod file (pasted from the workspace in Matlab):

Xsol = [ 1.32 3.24 .......];

This did not work (dynare++ complained about left brackets) so I instead tried (in the mod file)

load('solution.mat','Xsol');

which didn't work either.

Is there a way to easily load data when using dynare++ ?

I have more than 500 variables, so I am not too keen on entering them by hand (especially since I want to do sensitivity analysis and want to vary parameters and hence starting values)

Andreas
andwes
 
Posts: 20
Joined: Wed Mar 17, 2010 2:17 pm

Re: Loading data in dynare++

Postby MichelJuillard » Sun Aug 08, 2010 7:50 pm

dynare++ is a standalone program and doesn't know how to read Matlab binary files.

My only suggestion is to use the Matlab program that prepares the initial values so as to write them in a text file and in a format that make it easy to copy paste in the *.mod file used for dynare++

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Loading data in dynare++

Postby andwes » Mon Aug 09, 2010 1:44 pm

Thanks, i'll try that.

Best

Andreas
andwes
 
Posts: 20
Joined: Wed Mar 17, 2010 2:17 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests