I am not familiar with running Monte Carlos in RATS.
Could anyone please tell me how I must modify the MCVARdodraws procedure so that the factor that was obtained with the shortandlong procedure is
used instead of the standard Cholesky factorization? (for a just-identified SVAR)
The standard MCVARdodraws procedure reads:
Code: Select all
....
compute fxx =%decomp(%xx)
compute fwish =%decomp(inv(%nobs*%sigma))
compute betaols=%modelgetcoeffs(model)
compute wishdof=%nobs-%rows(fxx)
.....
infobox(action=define,progress,lower=1,upper=draws) "Monte Carlo Integration"
do draw = 1,draws
if %clock(draw,2)==1 {
compute sigmad =%ranwisharti(fwish,wishdof)
compute fsigmad =%decomp(sigmad)
compute betau =%ranmvkron(fsigmad,fxx)
compute betadraw=betaols+betau
}
else
compute betadraw=betaols-betau
compute %modelsetcoeffs(model,betadraw)
impulse(noprint,model=model,results=impulses,steps=steps,$
factor=fsigmad)
.....
dim %%responses(draw)(%rows(impulses)*%cols(impulses),steps)
ewise %%responses(draw)(i,j)=ix=%vec(%xt(impulses,j)),ix(i)
infobox(current=draw)