Estimating the example fs2000_nonstationary

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.

Estimating the example fs2000_nonstationary

Postby andwes » Tue Mar 19, 2013 6:30 pm

Hi,

In the example folder in the dynare folder there are two files, fs2000.mod and fs2000_nonstationary.mod. The first exampe estimates a model, while the second simulates and nonstationary variant of fs2000.mod. I'm trying to estimate fs2000_nonstationary.mod by making modification in that file along the lines of fs2000.mod and creating an .m file corresponding to fs2000_steadystate.m. However, I cannot get the file to run - it complains that i should declare the steady state function using external_function. There is no such declaration in fs2000.mod, even though a fs2000_steadystate.m file is supplied, but the .mod file still runs. I have tried to use the external_function command in my nonstationary variant, but the program still crashes. Does anyone have an idea what could be wrong? I attach my modified files.

Best,

Andreas
Attachments
fs2000_nonstationary_est_steadystate.m
(1.58 KiB) Downloaded 71 times
fs2000_nonstationary_est.mod
(2.45 KiB) Downloaded 69 times
andwes
 
Posts: 20
Joined: Wed Mar 17, 2010 2:17 pm

Re: Estimating the example fs2000_nonstationary

Postby jpfeifer » Tue Mar 19, 2013 9:49 pm

Silly mistake. Dynare 4.3.2 says
Starting Dynare (version 4.3.2).
Starting preprocessing of the model file ...
ERROR: fs2000_nonstationary_est.mod:64.20-24: To use an external function (m) within the model block, you must first declare it via the external_function() statement.

In line 64, column 20 to 24 there is a problem. You forgot to rename m to gM. If you correct this, the steady state file runs - except for providing wrong values.
------------
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: Estimating the example fs2000_nonstationary

Postby andwes » Mon Mar 25, 2013 6:38 pm

Sorry about that - should have seen it myself. Thanks anyway for the help.

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


Return to Dynare help

Who is online

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