This is my first post in this forum and I am not so familiar with the procedures in Rats.
My main objective is to compute generalized IRF’s with following code.
The dataset has 14 variables that one of them is IP.
I try to give one unit of shock to each variables (expect IP), in order to get cumulative responses of IP to the shocks.
When I run the following code, I get responses of all varibles (in this case I also give a shock to IP).
How can I give a shock of all variables by excluding IP ?
I also try to declare shocklabels and varlabels, but it doesn’t work.
Regards.
Code: Select all
compute nstep = 24
source mcvardodraws3.src
calendar(m) 1992:1
allocate 2013:11
open data 03_05_2015.xls
data(format=xls,org=columns) / IP CPI REER DEPOSIT ISE CREDIT CONFIDENCE DI M1 FSPREAD SSPREAD OIL VIX SP500
table
******************************************************************
@VARLAGSELECT(LAGS=13,CRIT=AIC)
# IP CPI REER DEPOSIT ISE CREDIT CONFIDENCE DI M1 FSPREAD SSPREAD OIL VIX SP500
******************************************************************
system(model=FKE)
variables IP CPI REER DEPOSIT ISE CREDIT CONFIDENCE DI M1 FSPREAD SSPREAD OIL VIX SP500
lags 1 2
det constant
end(system)
estimate(noprint,resids=varresids)
errors(model=FKE, window="Variance Decomposition(Linear VAR)", steps=24)
******************************************************************
impulse(model=FKE, window="Impulse Responses", steps=24)
@MCVARDoDraws3(model=FKE, steps=24, draws=1000, accumulate=||1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14||)
@MCGraphIRF(model=FKE, page=all, STDEV=1.0, include=||1||)