Hello, I have been trying for a while to reproduce Corsetti, Dedula and Leduc (2008) without success. I think the error is in lines 97- 103, where the Euler equations for countries H and F are located. Currently, the mod file only runs if I set R, capital rental rate, as predetermined (R(-1)) in the budget constraint, but that is inconsistent with R(+1) in the Euler equations. If I fix this inconsistency, the model doesn’t run (blanchard-kahn).

I have tried moving the timing of capital variables kh, kf, kn1 and kn2, the timing of r (real interest rate), and simplifying equations, but nothing. The model is not that big so maybe the error is obvious for someone else.

I attach the .mod, the steady state file, and the derivation file in pdf. If anyone can take a look, it would be greatly appreciated. Thank you

Hello Professor, thanks for your reply. I fixed the capital as suggested by setting

k1(-1) = kH + kN1; and
k2(-1) = kF + kN2;

My problem remains the same. I think the problem may come from the timing of prices (r and R1,R2) in the Euler equations and budget constraint (BC).

With the following lines, the code runs, but I think it is wrong because R1 (and R2, for the foreign country) and r should be in expectation in the Euler equation.

But this last setup yields 8 eigenvalues>1 for 7 forward looking variables and colinear relationships in all prices, so I’m stuck here. What should be the correct timing here? Thank you