matrix determinant in local variable declaration

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.

matrix determinant in local variable declaration

Postby fuyangzhao » Mon Oct 17, 2016 1:47 am

Hi all,

In model declaration, we can create model-local variables:
Code: Select all
# VARIABLE_NAME = MODEL_EXPRESSION;


Some of my local variables are solved for from a linear equation system, and I want to apply Cramer's rule directly in the local variable declaration. So I wonder if it is possible to define matrix in
Code: Select all
# VARIABLE_NAME = MODEL_EXPRESSION;

and it is possible to compute their determinant. If it is, how?

Thanks!
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: matrix determinant in local variable declaration

Postby jpfeifer » Mon Oct 17, 2016 12:53 pm

No, that is not possible. Matrix operations are best conducted in a _steadystate-file.
------------
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: matrix determinant in local variable declaration

Postby fuyangzhao » Thu Oct 20, 2016 5:05 am

jpfeifer wrote:No, that is not possible. Matrix operations are best conducted in a _steadystate-file.

Thank you, Professor.
One more question, when using _steadystate.m file, could Bayesian Estimation still be conducted in dynare?
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: matrix determinant in local variable declaration

Postby jpfeifer » Thu Oct 20, 2016 8:09 am

Sure. That has nothing to do with the steady_state-file or the steady_state_model-block.
------------
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 6 guests