Commit 28f5c66f authored by michel's avatar michel
Browse files

4.1: fixing bug in estimating backward models with loglinear option


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3242 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 0cf6180b
......@@ -224,7 +224,13 @@ function [dr,info,M_,options_,oo_] = dr1(dr,task,M_,options_,oo_)
info(1) = 3;
info(2) = temp'*temp;
end
return;
if options_.loglinear == 1
klags = find(M_.lead_lag_incidence(1,:));
dr.ghx = repmat(1./dr.ys,1,size(dr.ghx,2)).*dr.ghx.* ...
repmat(dr.ys(klags),size(dr.ghx,1),1);
dr.ghu = repmat(1./dr.ys,1,size(dr.ghu,2)).*dr.ghu;
end
return
end
%forward--looking models
......
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