Shock decomposition

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.

Shock decomposition

Postby jsaldain » Wed Jun 22, 2016 5:56 pm

I estimated a DSGE model and did a shock decomposition of one of my endogenous variables. I would like to save the contribution of one of the shocks to the endogenous variable as a vector. But matlab saves it as text.

This is the command I am executing: pi_decom=oo_.shock_decomposition(24,11,:)

That is: variable 24, shock 11, through each moment of time.

Thanks in advance!
jsaldain
 
Posts: 4
Joined: Tue Mar 25, 2014 12:26 am
Location: Montevideo, Uruguay

Re: Shock decomposition

Postby jpfeifer » Thu Jun 23, 2016 7:07 pm

What do you mean? Matlab displays the result as text in the command windows, but it is saved as a variable. Or is the problem that you have a three-dimensional array? In that case use
Code: Select all
pi_decom=squeeze(oo_.shock_decomposition(24,11,:))
------------
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 9 guests