Integral evaluation

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.

Integral evaluation

Postby trungbui » Tue Jul 11, 2006 10:17 pm

Hi all,
I'm writing an RBC model with the financial accelerator. I need to solve for an upper limit of an integral in the model. I'm new to Dynare so I don't know how. There are 2 integrals: integration of a log-normal pdf and integration of (w*log-normal pdf) between 0 and upper limit w_bar. Can I stick Dynare code in Matlab m-file?
Thanks alot.
trungbui
 
Posts: 5
Joined: Mon Jul 10, 2006 5:24 pm

Postby MichelJuillard » Wed Jul 12, 2006 12:57 pm

In your model file, you can call a function that computes these integrals. It can be either a function that is part of Matlab or one for which you provide the *.m file.

As for your second question, it is rarely efficient to call Dynare from inside a *.m file. On the opposite, you can add Matlab code such as loops in your *.mod file

Kind regards

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


Return to Dynare help

Who is online

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