Deterministic and stochastic shocks in simultaneous


I’m working on a RBC model with a technological, a financial and a preference shock (all stochastic), but I would like to know if it is possible to generate a preference shock that for a certain time of the sample exhibits a stochastic behavior, and for remaining periods, behaves like a deterministic shock. Is it possible to begin with with the deterministic behavior by feeding specific initial values using histval? Thanks in advance for your attention, and I am able to provide more information about my model if you think it is pertinent.

Dynare allows you to distinguish between stochastic surprise shocks (varexo) and known, anticipated shocks (varexo_det), see e.g. Alternatively, you can always go for a combination of surprise and anticipated news shocks.