Skip to content
Snippets Groups Projects
Commit a04c348d authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

smoother2histval.m: provide warning when smoothed variables are missing

parent dc45ac63
No related branches found
No related tags found
1 merge request!1886Improvements for smoother2histval
...@@ -78,6 +78,11 @@ end ...@@ -78,6 +78,11 @@ end
if post_metropolis if post_metropolis
tmp = fieldnames(smoothedvars.Mean); tmp = fieldnames(smoothedvars.Mean);
if length(tmp)~=M_.endo_nbr
warning(['You are using smoother2histval although smoothed values have not'...
'been computed for all endogenous and auxiliary variables.'...
'The value of these variables will be set to 0.'])
end
tmpexo = fieldnames(smoothedshocks.Mean); tmpexo = fieldnames(smoothedshocks.Mean);
else else
tmp = fieldnames(smoothedvars); tmp = fieldnames(smoothedvars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment