steady state DSGE Model search and matching frictions

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.

steady state DSGE Model search and matching frictions

Postby Thought Riot » Sat Mar 30, 2013 2:23 pm

Hi everyone,

I'm writing my Master's thesis wherein I try to to set up a DSGE model with search and matching frictions. Since my model contains non-linear equations with endogenous variables, I use Matlab's fsolve to get the steady state values. My .mod file is running but I'm not content with it because I'd like to evaluate how the steady state values and the model dynamics react to changes in parameters. Therefore I want to incorporate my .m-file into the .mod file.

A steady state file is the solution but I have no idea how to transform my .m-file ("mysteady") into a steady state file because I'm rather new to Matlab. I know that I have to use "function[ys,check]=NAME_OF_THE_MOD_FILE_steadystate(ys,..)", where ys is a vector with the steady state values of my variables I want to use as initial values in Dynare, but I have problems to understand the examples presented in this forum because I don't know how to use fsolve within the steady state file.

It would be really helpful if anyone has an idea how to solve my problem.

Here are my .m files and my .mod file. Note that "afa1" is a .m-file I employ in my .mod file to calculate an integral expression. The file "mysteady_sol" is used to solve the equation system presented in "mysteady".

Thanks in advance!
Thought Riot
 
Posts: 1
Joined: Wed Mar 27, 2013 6:33 pm

Re: steady state DSGE Model search and matching frictions

Postby jpfeifer » Tue Apr 02, 2013 6:52 am

There are many examples in the forum. See for example here: http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3700
------------
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: steady state DSGE Model search and matching frictions

Postby quiko » Wed Jul 02, 2014 5:59 pm

Hi,

I would like implement the following expression in Dynare 4:

int(epsilon*g(epsilon),v, +inf)

where epsilon is a random shock drawn from a random (let's assume a normal) PDF g(epsilon); v is the lower integration bound and +inf is the upper bound.

Any suggestion or reference on how to do it?

Thank you,
F.
quiko
 
Posts: 17
Joined: Sat Mar 29, 2014 11:06 pm

Re: steady state DSGE Model search and matching frictions

Postby jpfeifer » Mon Jul 07, 2014 8:32 am

If you don't have a recursive representation to get rid the integral by defining the whole thing as a variable, you can only try a external function.
------------
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

cron