I am trying to estimate a bi-variate sign-restricted SVAR with daily oil and stock prices and two shocks (demand and supply).
The ultimate goal is to explain how much of the recent fall in oil prices stems from a demand shock (defined as a fall in both equity and oil prices) or a supply shock (defined as a rise in equity prices and a fall in oil prices).
I have written the model and understand the math behind it but I fail to implement it in a statistical package (Eviews or R). More specifically, the methodology to estimate the structural parameters with the contemporaneous sign restrictions eludes me.
Would anyone be so kind as to point towards a code or examples (R or Eviews preferably, but could be Gretl as well) that I could use for that part? Thank you!