Hi, first post here.
I am trying to build a model wich has a continuum of monopolistically competitive firms and Calvo pricing for said firms.
I can work out all math conditions, but as far as I have seen model with monopolistic competition are solved in Dynare making use of the trick that the aggregate production function will be the same of the generic (and symmetric firm).
If I had Calvo pricing to the recipe this means that prices for some firm might be dispersed at any given time, hence I am not sure if I can aggregate the production function. Anybody can help me out/has experience with such a model or can point me to some similar looking paper (the issue is in writing down the simulation).
Seems you are talking about the standard Calvo approach. Please have a look at the NK_baseline.mod in the Dynare examples folder and the associated references. They contain all the math. You can also find it here github.com/DynareTeam/dynare/blob/master/examples/NK_baseline.mod
The trick is that due to constant returns to scale all firms will use the same capital to labor ratio and thus aggregation is possible. There will be a price dispersion term showing up in the aggregate production function, but because this term has a recursive representation, it can be easily entered to Dynare.
Thank you, this has been very helpful.
If you don’t mind, I’d ask you something which is not strictly related to dynare, as I am facing problems with computation of marginal costs. I fear this might be due to having posed a wrong production/profit function.
I have the following profit function
K is capital, L is labor, T is a share between zero and one allocating labor between a market (T) and underground sector (1-T). R is rental rate, W is wage and c,p are parameters related to taxation.
I am not sure if given this function I am able to compute marginal cost following the procedure illustrated in the paper.
In this case, derive marginal costs as the Lagrange multiplier in the firm’s cost minimization problem. See e.g. Walsh (2003) Monetary Theory and Policy, Second Edition, p. 235
Ok, I’ve considered this before and I have been able to obtain an expression for MC. I am only left with one problem: in my model I have two sector in the economy a domestic and a foreign one. This implies that prices aggregator P_t=int p_it/p_t appear quite often in the model by themselves and play a relevant role.
As far as I have seen in the baseline model the trick consists in obtaining inflation expression and price dispersions terms which are then made operative by the Calvo inflation dynamics .
I am wondering if it is instead possible to have the price aggregator P_t appear in the model, if this will cause any issues or there is any trick to apply to obtain this.
Thank you for the help so far =)
It depends. The reason we express everything in terms of inflation is that the aggregate price level is indeterminate and we need a relation defining aggregate inflation. If your model uniquely determines the price level, you should be fine with defining the whole integral as the price level variabe and keep it in the equations.
Hi, I have more or less completed the model and wrote code for Dynare.
I have computed SS by hand, but when I ran the model using solve_algo=4 it is unable to find the steady state, naming infinite terms in some equations, but I am unable to identify the issue.
I attach the code, the model is quite huge, so I understand you might not have the time to look through it, but maybe you can give me a hint on where to look for to get it to work.
As usual, thanks!
dynare_code.mod (16.8 KB)
MODEL .pdf (627 KB)
The most important problem is
[quote]MODEL_DIAGNOSTICS: The following endogenous variables aren’t present at the current period in the model:
The steady state found was