hashem wrote:hello
I am new to RATS usally worked with eviews and microfit but now i need to apply more advanced techniques. I was hopeing someone could help me with graphing impulse response functions for a VAR model with standard errors one graph for each shock for each variable, so that each graph has only one series, kind of like what eviews gives out.
I also needed to test for serial autocrrelation after estimating the var and i couldn't find this in the user guide.
thank you
The
MCGRAPHIRF procedure gives you quite a bit of flexibility for arranging the graphs. PAGE=ONE does one combination of shock and variable per page.
The
MVQSTAT procedure does a multivariate test for serial correlation. This is from Lutkepohl's textbook examples.
- Code: Select all
*
* Lutkepohl, New Introduction, pp 173-174
* Multivariate Q test
*
open data e1.dat
calendar(q) 1960
data(format=prn,org=columns,skips=6) 1960:01 1982:04 invest income cons
*
set dinc = log(income/income{1})
set dcons = log(cons/cons{1})
set dinv = log(invest/invest{1})
*
system(model=varmodel)
variables dinv dinc dcons
lags 1 2
det constant
end(system)
estimate(resids=resids) * 1978:4
*
@mvqstat(lags=1)
# resids