I am totally new with RATS, but I do really need to replicate two papers for my thesis (Cushman and Zha, 1997 and Kim and Roubini, 2000).
I want to use SVAR with exogenous variables (nearVAR).
I already read related sources like this forum, user guide, books and email an author.
However, what I got is still not complete or maybe I miss things from what I found out. Besides, this author whom I emailed using old version of RATS.
I also look into Tao Zha's page (http://www.tzha.net/code). He is using SVAR with block exogeneity in his paper: Identifying Monetary Policy in a Small Open Economy under Flexible Exchange Rate (Cushman and Zha, 1997), but he also used an old version of RATS.
Regarding my question, here I attached one of them. I attached the code showing a modified model of Kim and Roubini (2000)-Exchange rate anomalies in the
industrial countries: A solution with a structural VAR approach. First, I tried the model as what stated on the paper, then I modified it to see monetary policy shock on Indonesian stock market (what I attached in here).
Is it possible I did this in the identification ?
In this case, both exchange rate and stock market consider forward looking variables, so they react to all variables in the model (my two first rows in the identification matrix A).[/color]The result looks good, the significance level of the overidentification test is high.
Since I frequently use EViews, I am familiar that there are some diagnostic test to find out whether this VAR model good or not, like VAR stability test and serial correlation test. I already browse in this forum for the stability test by calculating eigenvalue (I also put it in my code in the attachment):
Code: Select all
function %ModelLargestRoot model
type model model
*
local vect[complex] cv
eigen(cvalues=cv) %modelcompanion(model)
compute %ModelLargestRoot=%cabs(cv(1))
end
*
dis %ModelLargestRoot(inanearvar)I also found these codes related to eigen:
Code: Select all
eigen(scale) %sigma * eigen
dis eigenCode: Select all
dec rec co
compute co=%modelcompanion(inanearvar)
eigen co eigenvalue
dis eigenvalueBesides, how can I do the LM serial correlation or any serial correlation test that is suitable for my nearVAR model (SVAR with exogenous variables)?
I read on some sources, it is needed to calculate this.
Is there any suggestion for VAR diagnostic pre or post estimation?
I only know for pre estimation, I need to calculate VAR lag, I use both RATS and EViews, two is enough.
And for post estimation is VAR stability (eigenvalue) and serial correlation test.
Thank you in advance and looking forward to your reply and would be very happy to get any comment or suggestion for the code.
Regards,