Open Usukhbayar13 opened 1 year ago
How to do this simulation with using IRIS 2023 toolbox?
When using a simulation Plan, the anticipation option is specified in that Plan, and you cannot use the option independently in the simulate function itself.
% Create a Plan with the anticipate option set to false in general p = Plan.forModel(m, range, anticipate=false); % Specify anticipate=true for a selection of shocks p = anticipate(p, true, ["shock_1", "shock_54"]); ...
% Pass the plan into the simulation command simulate(m, d, range, plan=p);
On Fri, Oct 6, 2023 at 8:37 AM TuM @.***> wrote:
How to do this simulation with using IRIS 2023 toolbox?
— Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/391#issuecomment-1750059404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKVCPZJ7DHXZX5XWHPDX56RKHAVCNFSM6AAAAAA5VKUR2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQGA2TSNBQGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks Jaromir
I was also looking for a solution to this problem my case is similar I would like to know if there is a way to define the plan so that it is anticipate a true for certain shocks and for a precise sub-period that is part of range. For the rest of the period, the anticipation will remain false. In other word, if we can give flexibility to plan to work with range date. example: p = anticipate(p, true, range1, ["shock_1", "shock_54"]); where range1 is subset of range
This can only be implemented by introducing two shocks in the same place (equation)
x = 0.8*x{-1} + shock_1 + shock_2;
and declaring one of them as anticipated, the other as unanticipated.
On Fri, Oct 6, 2023 at 2:55 PM mariusmjp @.***> wrote:
Thanks Jaromir
I was also looking for a solution to this problem my case is similar I would like to know if there is a way to define the plan so that it is anticipate a true for certain shocks and for a precise sub-period that is part of range. For the rest of the period, the anticipation will remain false. In other word, if we can give flexibility to plan to work with range date. p = anticipate(p, true, range1, ["shock_1", "shock_54"]); where range1 is subset of range
— Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/391#issuecomment-1750629037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKXMHJBN4GT4PANOAITX575TNAVCNFSM6AAAAAA5VKUR2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQGYZDSMBTG4 . You are receiving this because you commented.Message ID: @.***>
Thanks a lot.
sim = simulate(m,dbinitial,fcastrange,'anticipate',true,'Plan',sp, 'prependInput',true);
Error message
*** Options Plan= and Anticipate= cannot be used at the same time.