jpfeifer wrote:Yes, you are right. I confused this with a different mod-file, but the procedure would be the same as for Rbar and gammma1.
Thanks for your quick reply!
Based on NK_baseline.mod, I wrote a simple test file in which there are only two endogeneous variables, the model is linear, and two parameters (Rbar gamma1) are solved for in the steady state file.
- tri.mod
- (2.76 KiB) Downloaded 65 times
However, when I run the mod file, it reports
Attempt to execute SCRIPT tri_steadystate as a function:
C:\Users\ASUS\Desktop\tri_steadystate.m
Error in evaluate_steady_state_file (line 49)
[ys,check] = h_steadystate(ys_init, exo_ss);
Error in evaluate_steady_state (line 58)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, ...
Error in steady_ (line 54)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in tri (line 231)
steady;
Error in dynare (line 180)
evalin('base',fname) ;I didn't write tri_steadystate.m as a function. In NK_baseline_steadystate.m, NK_baseline_steadystate(ys,exo) is a function of vector of initial values for the steady state of the endogenous variables and vector of values for the exogenous variables. However, in my log-linearized system, there is no initial values for the steady state of the endogenous variables.
Anyway, after I changed tri_steadystate.m as a function.
- tri.mod
- (2.76 KiB) Downloaded 65 times
It reports the following:
Error in tri_steadystate (line 3)
global M_
Output argument "check" (and maybe others) not assigned during call to "C:\Users\ASUS\Desktop\tri_steadystate.m>tri_steadystate".
Error in evaluate_steady_state_file (line 49)
[ys,check] = h_steadystate(ys_init, exo_ss);
Error in evaluate_steady_state (line 58)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, ...
Error in steady_ (line 54)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in tri (line 231)
steady;
Error in dynare (line 180)
evalin('base',fname) ;I do not understand...How do I modify tri_steadystate.m?
Thank again!