less moments than variables

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.

less moments than variables

Postby p.gelain » Tue Jul 29, 2008 1:10 pm

Hi

I am simulating a model with 37 endogenous variables, but Dynare gives me the moments only for 23 variables and the variance decomposition and the matrix of correlations only for 20 variables.

Does someone know why?

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank

Postby iacoviel » Wed Jul 30, 2008 3:49 am

It is likely that you are calculating the variance decomposition and the theoretical moments of nonstationary variables. Neither of those exist. Dynare will not report moments for variable which are nonstationary, I think.
iacoviel
 
Posts: 38
Joined: Wed Feb 01, 2006 6:25 pm

Postby reubenpjacob » Wed Jul 30, 2008 11:00 am

true, if there is a unit root, dynare will not report the moments.
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand

Postby p.gelain » Wed Jul 30, 2008 12:46 pm

Ok, thank you for your replies. But, how does Dynare establish if a (simulated?) variable is stationary or not? if I do not say Dynare to simulate the model, the only way I think it can do is checking whether the variance is finite or not (I am sure that my variables has finite means, and in particular zero mean). Contrary, if I simulate the model (periods=1000), all the moments (which are not theoretical in this context!) are computed.

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank

Postby iacoviel » Fri Aug 01, 2008 2:59 am

Consider the following equation

x(t)=rho*x(t-1)+u(t), u(t) iid, with variance s

If abs(rho)<1, the theoretical variance of x(t) is s/(1-rho^2)

If rho=1, the variance of x does not exist, but that does not prevent you from simulating that process for T periods and computing the variance of x, but the variance of x will explode as T grows larger. Try simulating your model doubling the number of periods. The variance of your nonstationary variable should be twice as big. In fact, the variance is not finite.

Dynare applies the same logic as the one described above for the univariate case. In the multivariate case, x(t) is a vector, rho is a matrix (call is R), etc... and the variance of x(t) can be computed using the formulas described in Hamilton chapter 13. You should start from there to establish how to find which variables are stationary and which ones are not.
iacoviel
 
Posts: 38
Joined: Wed Feb 01, 2006 6:25 pm

Postby p.gelain » Fri Aug 01, 2008 7:09 am

many thanks!

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests