how to calculate spectral density

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.

how to calculate spectral density

Postby naivej » Mon Jun 08, 2015 11:04 pm

Hi there,

I can find the command here http://www.dynare.org/dynare-matlab-m2h ... .html#_top but not in reference manual. There is no example of how to use this command. It works when I put UnivariateSpectralDensity before stoch_simul but I got the following message even I set order=1

UnivariateSpectralDensity :: I Cannot compute the theoretical spectral density
with a second order approximation of the DSGE model!
Please set order = 1. I abort

Many thanks
naivej
 
Posts: 9
Joined: Mon Jun 08, 2015 10:59 pm

Re: how to calculate spectral density

Postby jpfeifer » Tue Jun 09, 2015 1:09 pm

You can trigger it with
Code: Select all
options_.SpectralDensity.trigger=1;

before stoch_simul. When I set order=1 it works. Thus, please provide code to replicate the problem.
------------
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: how to calculate spectral density

Postby naivej » Tue Jun 09, 2015 6:41 pm

Many thanks the problem is solved.
If I put UnivariateSpectralDensity, I will have
trigger: 0
plot: 1
cutoff: 150
sdl: 0.0100
the trigger need to be set to 1 as you suggest
naivej
 
Posts: 9
Joined: Mon Jun 08, 2015 10:59 pm


Return to Dynare help

Who is online

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