Commit 98ac3091 authored by stepan's avatar stepan
Browse files

Added a vector of indices for the state variables in the restricted state vector (bayestopt_.mf0).



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3132 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 04d5c56b
......@@ -178,6 +178,8 @@ end
k2 = union(k',[dr.nstatic+1:dr.nstatic+dr.npred]');
% Set restrict_state to postion of observed + state variables in expanded state vector.
bayestopt_.restrict_var_list = k2;
% set mf0 to positions of state variables in restricted state vector for likelihood computation.
[junk,bayestopt_.mf0] = ismember([dr.nstatic+1:dr.nstatic+dr.npred]',k2);
% Set mf1 to positions of observed variables in restricted state vector for likelihood computation.
[junk,bayestopt_.mf1] = ismember(k,k2);
% Set mf2 to positions of observed variables in expanded state vector for filtering and smoothing.
......
......@@ -165,9 +165,12 @@ k2 = union(k',[dr.nstatic+1:dr.nstatic+dr.npred]');
% set restrict_state to postion of observed + state variables
% in expanded state vector
bayestopt_.restrict_var_list = k2;
% set mf0 to positions of state variables in restricted state vector
% for likelihood computation.
[junk,bayestopt_.mf0] = ismember([dr.nstatic+1:dr.nstatic+dr.npred]',k2);
% set mf1 to positions of observed variables in restricted state vector
% for likelihood computation
[junk,bayestopt_.mf1] = ismember(k,k2);
% for likelihood computation.
[junk,bayestopt_.mf1] = ismember(k,k2);
% set mf2 to positions of observed variables in expanded state vector
% for filtering and smoothing
bayestopt_.mf2 = k;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment