Skip to content
Snippets Groups Projects
Commit df0edeec authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Theoretical moments: handle nicely the case where all variables are either...

Theoretical moments: handle nicely the case where all variables are either constant or non stationary
parent 1f4ea5aa
Branches
Tags
No related merge requests found
...@@ -82,6 +82,13 @@ if ~options_.noprint %options_.nomoments == 0 ...@@ -82,6 +82,13 @@ if ~options_.noprint %options_.nomoments == 0
end end
end end
if length(i1) == 0
disp(' ')
disp('All endogenous are constant or non stationary, not displaying correlations and auto-correlations')
disp(' ')
return;
end
if options_.nocorr == 0 && size(stationary_vars, 1) > 0 if options_.nocorr == 0 && size(stationary_vars, 1) > 0
corr = oo_.gamma_y{1}(i1,i1)./(sd(i1)*sd(i1)'); corr = oo_.gamma_y{1}(i1,i1)./(sd(i1)*sd(i1)');
if ~options_.noprint, if ~options_.noprint,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment