shocks to the model and switching endogenous to exogenous

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

Shaun de Jager
Posts: 1
Joined: Mon Aug 03, 2009 6:55 am

shocks to the model and switching endogenous to exogenous

Postby Shaun de Jager » Fri Mar 12, 2010 7:14 am

Hi i am trying to do a shock to a model - in the original specification the variable is endogenous. I wish to programatically switch the endogenous variable (say interest rate "i") in the model to become exogenous --- and then to add 1% to the "i" - shock the model (solve) and see my results - is there anyway that this can be programmed...i have tried your exclude function but this does not seem to solve my problem..
i have programmed it as below...so the program argument is {%0} = "i"
the model name is coremod

smpl @all
series {%0}_0 = {%0}
series {%0}_1 = {%0}
'NB: VERY IMPORTANT - DECIDE IF IT'S A RATE OR LEVEL SHOCK
'ensure start date of shock = start date of solve
smpl 2005:1 2005:4
series {%0}_1 = {%0}+1
'ensure start date of shock lies within start date of solve
smpl 2002:1 2010:4
coremod.exclude {%0}
coremod.solveopt(s=d, d=d, a=t )
coremod.scenario(a) "Scenario 1"
coremod.scenario scenario 1
coremod.override {%0}
coremod.scenario baseline
solve coremod

i would appreciate any assistance in this
PS: I am using e-views 7
Thnx
s

Return to “Models”

Who is online

Users browsing this forum: No registered users and 13 guests