My var_list_ is empty

I see on my workspace “var_list_” but it is empty.

How/where do I load/see the list of var_list_ so that of all my endo vars so that I can easily match computed steady states with variable names?

If var_list_ is empty, it corresponds to M_.endo_names

Thanks for your response, but since the list is not numbered, it is kind of hard to match the SS results with variables. Any suggestions?

Usually, you use something like
log_k_ss=oo_.dr.ys(strmatch('k',M_.endo_names,'exact'));

My oo_.dr.ys file is just one column with SS values but no var names… so I am not even sure which value corresponds to what var…

Run:

for var_iter=1:M_.endo_nbr
    fprintf('Variable %u: %30s, Steady state: %10.8f\n',var_iter,M_.endo_names{var_iter},oo_.dr.ys(var_iter))
end

Brace indexing is not supported for variables of this type.

:tired_face:

Please use the most recent Dynare version. Before 4.6 it should be

for var_iter=1:M_.endo_nbr
    fprintf('Variable %u: %30s, Steady state: %10.8f\n',var_iter,M_.endo_names(var_iter,:),oo_.dr.ys(var_iter))
end
1 Like

A post was split to a new topic: Chen 2020: indeterminacy