This is the so-called MX model seen in the book of Schmitt-Grohe and Uribe of International Macro. It is a SOE model with 2 sectors (Mportables and Xportables). I have set up the equilibrium conditions just as described in the text. What is missing is the steady state. As a shortcut solution, I try the “initval” command, but it is not reaching a solution. I need help either solving the steady state analytically or tips on finding proper initial values.

After fixing that I cannot find the steady state still:

Error using print_info (line 83)
Impossible to find the steady state. Either the model doesn’t have a steady state, there are an infinity of steady states, or the guess values are too far from the
solution

Can I use a solver straight away for the whole system if equations or is that only to complement a few equations?

I have written the analytical steady state and it works. The problem is that the model only works as long as the parameters used for both sectors are the same. If the Frisch elasticity for labor supply is different in one sector, then the model is not run. Any explanation behind this?

Dear @jpfeifer,
This is another version of the file. I am very close to finding the steady state but there seems to be a problem with equations 9 and 10. I do not know why, because they are correctly specified. They are important because they are the equations for prices of import- and export goods, that lead to the terms of trade.mx2019a.mod (6.5 KB)
Thanks

@jpfeifertermstrade.mod (7.6 KB)
I have run this model using initial values i get from another file that solved this model analytically. I have used those init values here but I cannot find the steady state, even though in principle, the guesses are not close to the true solution, but should instead be the solution. I have also used the (solve_algo=4, maxit=10000) as you suggest in other posts but I reach no solution. Can you please suggest a way out without going to the analytical option?

You stated that you fed in the true steady state values. If that is true and they are not what Dynare finds, then the steady state does not match the equations entered. Ergo, there must be something wrong in one of the two things.

Hi, I am trying to replicate the MXN model and I am encountering the same problem. I revised the code and my derivations several times. I couldn’t find what am I doing wrong. I’ got problem at price of importables, the price of exportables, price of non-tradable and price of tradable composite good. I also run the m files provided by uribe and put the steady state values as initvals and it didn’t work… Have you find any solution yet?

@jpfeifer can you please help me out? this code has the following problems:

The code appears to work properly, but the IRFs are not making too much sense. Figure 1 should show IRFs after a level shock, and figure 2 the same for a volatility shock, but the figures show the same responses.