# Simulating an exogeneous change in an exogenous variable

Good morning, community. I am not very familiar with dynare and this may seem obvious to most of you. I built a three country model with natural hazards where investment in flood defences is endogenous but I would like to see what happens to GDP, capital, damages caused by storms, etc when we invest 2 different amounts in flood defences and compare with the optimum under the same shocks. Is this possible?
I tried to build the dr functions and do the simulations in excel but this seems a bit cumbersome.
thank you for your help

1 Like

may contain the answer.

Sorry for the confusion, I made a typo mistake. Itâ€™s not the shock that I would like to simulate but what happens when an endogenous variable, investment in some type of infrastructure like flood defences, is forced to have specific values for 5 periods. I tried to do this by building the dr functions in excel but it gets too messy. I donâ€™t know if this is relevant but I am using 2nd and 3rd order aprox.
Threecountries.mod (4.1 KB)

I think I found how to do it using conditional forecasting. Thank you

Yes, that can work. But itâ€™s just about finding the necessary exogenous shocks to get the desired endogenous behavior.

I see. So itâ€™s not the answer to the question of how the economy will perform under different levels of capital to the same shocks. Back to square one then and building the dr functions in excel. I am a bit surprised that this canâ€™t be done in dynare though.

What exactly are you trying to do? Now it sounds like you want to trace the IRFs starting from different state values (which capture the whole effect of past shocks). That would be a case of GIRFs: DSGE_mod/RBC_state_dependent_GIRF/RBC_state_dependent_GIRF.mod at master Â· JohannesPfeifer/DSGE_mod Â· GitHub

I am negotiating budget bids with the Treasury and I would like to support each limit to capital spend with evidence about how the economy may react in different economic scenarios (shocks). These scenarios or shocks need to be the same for all bids and the difference between bids is the amount of public investment

So public investment is exogenous?

It isnâ€™t initially as the first aim was to find an optimal path for public investment and compare those values with actual investment. That has been done. Now, what I would like is to see the consequences of different paths from â€śactualâ€ť to â€śoptimalâ€ť public investment in terms of GDP, welfare, damages, employment, etc. In a sense, itâ€™s about making an endogenous variable exogenous and see what happens when this exogenous variable is assigned different values, as in a control, but under the same shocks

Then I think you need to think harder about the economic setup you want to do. The two relevant questions are:

1. How do you want to make investment move? Is it purely exogenous or are there fundamental shocks that alter its value? That may matter for expectation formation and underlying dynamics.
2. What is the information structure underlying your model? Is the sequence of shocks known in the first period? Or do random shocks happen each period?