Non-linear parameter transformation and estimation
Posted: Sat Aug 09, 2014 11:18 pm
Hello,
I am trying to estimate a linearized DSGE model with imperfect information. I solve for the evolution of the state vector using a function [M,m] = state_eq(parameters) that I wrote by myself. The law of motion for the state vector is X_t = M X_{t-1} + m u_t.
I would like to call the entries of M and m into the model block in my mod file but I cannot declare them as parameters because they need to change with the 'deep parameters' at every MCMC iteration. I have tried something like this:
var y x ...;
varexo u ...;
parameters alph bet ...;
[M,m] = state_eq([alph bet ...]);
model(linear);
x = M(1,1)*x(-1) + ...
end
but Dynare does not recognize this matrix notation. I would like to avoid writing an external function for each entry of M and m because that would require solving for the whole matrices M and m numerous times at each MCMC.
Do you have any suggestions?
Thanks a lot for your help!
Giacomo
I am trying to estimate a linearized DSGE model with imperfect information. I solve for the evolution of the state vector using a function [M,m] = state_eq(parameters) that I wrote by myself. The law of motion for the state vector is X_t = M X_{t-1} + m u_t.
I would like to call the entries of M and m into the model block in my mod file but I cannot declare them as parameters because they need to change with the 'deep parameters' at every MCMC iteration. I have tried something like this:
var y x ...;
varexo u ...;
parameters alph bet ...;
[M,m] = state_eq([alph bet ...]);
model(linear);
x = M(1,1)*x(-1) + ...
end
but Dynare does not recognize this matrix notation. I would like to avoid writing an external function for each entry of M and m because that would require solving for the whole matrices M and m numerous times at each MCMC.
Do you have any suggestions?
Thanks a lot for your help!
Giacomo