# B+K violated in two sector model

**URL:** <https://forum.dynare.org/t/b-k-violated-in-two-sector-model/19699>\
**Category:** Stochastic simulations\
**Created:** [25 January 2022 22:06 UTC](https://forum.dynare.org/t/b-k-violated-in-two-sector-model/19699 "2022-01-25T22:06:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![excessliquid](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@excessliquid](https://forum.dynare.org/u/excessliquid)\
**Post date:** [25 January 2022 22:06 UTC](https://forum.dynare.org/t/b-k-violated-in-two-sector-model/19699/1 "2022-01-25T22:06:16Z")

</div>

Hello,

I am trying to get non-linearized 2-sector NK model to work in Dynare - While the steady state seems fine, I am getting a violation of the B+K conditions. I have no predetermined variables (capital) as labor is the only input to production. I think the Taylor rule is stabilizing.

When I run model\_diagnostics(M\_,options\_,oo\_), I find one colinear relationship for basically all of my price and wage variables for both the sectors in my model. I am wondering if this is a mistake-driven error or if I am missing conditions to properly identify the model.

Any help is much appreciated (annotated mod attached)  
[2sectormodel.mod](https://forum.dynare.org/uploads/short-url/ztBMywmorOtY07LGL2Epqtkr2v1.mod) (4.3 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 January 2022 13:37 UTC](https://forum.dynare.org/t/b-k-violated-in-two-sector-model/19699/2 "2022-01-26T13:37:11Z")

</div>

The equations

```auto
PI = (P/P(-1)); // aggregate inflation
PI_g = (P_g/P_g(-1)); // goods inflation
PI_s = (P_s/P_s(-1)); // serv inflation

```

imply a unit root in prices, which explains the collinearity. This is a well-known feature of the New Keynesian model.

Why don’t you have predetermined variables in your model? Usually, there is price dispersion somewhere.
