Skip to content
Snippets Groups Projects
Commit fb6762a9 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

Considers a pathological case where a static model is dynamically simulated

parent 47022b12
No related branches found
No related tags found
No related merge requests found
...@@ -19,10 +19,16 @@ function sim1_purely_backward() ...@@ -19,10 +19,16 @@ function sim1_purely_backward()
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_ options_ oo_ global M_ options_ oo_
if size(M_.lead_lag_incidence,1) > 1
ny0 = nnz(M_.lead_lag_incidence(2,:)); % Number of variables at current period ny0 = nnz(M_.lead_lag_incidence(2,:)); % Number of variables at current period
nyb = nnz(M_.lead_lag_incidence(1,:)); % Number of variables at previous period nyb = nnz(M_.lead_lag_incidence(1,:)); % Number of variables at previous period
iyb = find(M_.lead_lag_incidence(1,:)>0); % Indices of variables at previous period iyb = find(M_.lead_lag_incidence(1,:)>0); % Indices of variables at previous period
else
ny0 = nnz(M_.lead_lag_incidence(1,:)); % Number of variables at current period
nyb = 0;
iyb = [];
end
if ny0 ~= M_.endo_nbr if ny0 ~= M_.endo_nbr
error('SIMUL: all endogenous variables must appear at the current period') error('SIMUL: all endogenous variables must appear at the current period')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment