# Collinearity issue in simple two country model

Dear all,

I am trying to replicate the baseline model of this paper:

http://www.nber.org/papers/w23158

it should be pretty easy to replicate, but I keep getting a collinearity issue.
I know that often prices are not determined in these models, but a version of this code with inflation instead of the price level does not solve the problem.
I’m wondering if there is something obvious that I do not immediatly see.
I would greatly appreciate if anoyone could give me his opinion on this. Thanks in advance,

Massimo
param_FX.m (794 Bytes)
ss_FX_new.m (4.4 KB)
fxforecast.mod (6.5 KB)

This more seems like an issue with closing the model as a lot of real variables are involved. Either there are still bugs in your coding or there is a conceptual problem (missing equation)

Dear Johannes, yes indeed.
In the end we found a solution over the weekend and now we have a working code. The point was (as often is) to get a correct definition of inflation and prices. The model needs to have on unit root (the nominal exchange rate). To correctly code that in it was necessary to transform intermediate prices in relative prices. Doing that the model works and correctly replicates the IRFs of the paper.

Massimo

Dear Massimo,

Could you please explain in a bit more details how you fixed this issue or even post your new mod file?
I am facing a similar issue of collinearity due to the definition of prices in another two-country model.

Thanks a lot,

François

Dear Francois (apologies for the spelling)
My problem was with the definition of prices. Do you have prices defined as relative (i.e. defined the domestically produced fgood price in country 1 as p_d1=[price domestic good]/[price index country 1]).
Let me know if this works,

Massimo

Sorry to pick this topic up, but I seem to have a similar problem and I can’t find a solution anywhere. I have some questions relating to this.

As Massimo wrote,

If I use the price levels as in the right-hand side, how can we determine the price levels in the steady state then?

And if I have the 3 following equations, can I determine pih & tot under the condition that the inflation rates are equal, i.e., pi=pi_h=pi_f? 