Balcilar, Gupta and Miller, EE 2015
Balcilar, Gupta and Miller, EE 2015
This is a replication of Balcilar, Gupta, Miller(2015), "Regime switching model of US crude oil and stock market prices: 1859 to 2013", Energy Economics, vol 49, 317-327. This estimates a Markov Switching VECM, with the cointegrating vector fixed between regimes, but different VECM coefficients and covariance matrices.
balcilarguptamiller_ee2015.zip
Detailed description
balcilarguptamiller_ee2015.zip
Detailed description
Re: Balcilar, Gupta and Miller, EE 2015
A couple of questions:
1. What is the ECT variable in the Excel file?
2. How were the factors 0.25 and 4.0 chosen for defining the two volatility regimes?
Thanks,
1. What is the ECT variable in the Excel file?
2. How were the factors 0.25 and 4.0 chosen for defining the two volatility regimes?
Thanks,
Re: Balcilar, Gupta and Miller, EE 2015
Same thing as generated by the program, but with a different scale. (I think it's without the 100*). (Having the program generate that is a better procedure than using a separate program and treating it as data).unitroot wrote:A couple of questions:
1. What is the ECT variable in the Excel file?
That's not "defining" the regimes. Those are guess values aimed at separating the two regimes. They're far enough apart to be distinct, without making any one of the regimes really unlikely at the guess values.unitroot wrote: 2. How were the factors 0.25 and 4.0 chosen for defining the two volatility regimes?
Re: Balcilar, Gupta and Miller, EE 2015
What are the nine restrictions that the authors test in their Table 4? There are two equations with two endogenous lagged variables, a constant and an error correction term each -that's eight. The elements of the var-covar matrix are also allowed to change across the two regimes so that would be another three! Where am I wrong? Thanks for any insights.
Re: Balcilar, Gupta and Miller, EE 2015
That looks like a miscount in the paper. Under the null, there are 8 fewer regression coefficients + 3 fewer covariance matrix parameters, and then there are the 2 transition parameters which are unidentified under the null, so it looks like they should be (11) and (13) rather than (9) and (11).
Re: Balcilar, Gupta and Miller, EE 2015
Hi Tom,
There are two questions:
1) Is there any difference between "set p1smooth = psmooth(t)(1)" which is repeated both in lin 91 and 115?
2) If p0 is the matrix of transition probabilities what if the difference between "dec rect p0(nstates-1,nstates)" and "dec rect p0(nstates,nstates)"?
Thanks,
There are two questions:
1) Is there any difference between "set p1smooth = psmooth(t)(1)" which is repeated both in lin 91 and 115?
2) If p0 is the matrix of transition probabilities what if the difference between "dec rect p0(nstates-1,nstates)" and "dec rect p0(nstates,nstates)"?
Thanks,
Re: Balcilar, Gupta and Miller, EE 2015
They're after (slightly) different sets of estimates. But the first never gets used.abi wrote:Hi Tom,
There are two questions:
1) Is there any difference between "set p1smooth = psmooth(t)(1)" which is repeated both in lin 91 and 115?
ML uses N-1 x N matrices, EM and Gibbs sampling use N x N. The P0 also never gets used.abi wrote: 2) If p0 is the matrix of transition probabilities what if the difference between "dec rect p0(nstates-1,nstates)" and "dec rect p0(nstates,nstates)"?
Re: Balcilar, Gupta and Miller, EE 2015
Sorry for not being clear enough: In fact what i would need to do is to test for the presence of non-linearities in the data and not only for this example.
Thanks for your help,
Thanks for your help,
Re: Balcilar, Gupta and Miller, EE 2015
There are many different types of nonlinearity. In their case, the "linear" null is the standard VECM (which is linear in the variables given the cointegrating vector) and the non-linear alternative is the MS VECM. That's very different (on both hypotheses) from what your test is doing.
Re: Balcilar, Gupta and Miller, EE 2015
Thanks a lot for your quick reply.TomDoan wrote:There are many different types of nonlinearity. In their case, the "linear" null is the standard VECM (which is linear in the variables given the cointegrating vector) and the non-linear alternative is the MS VECM. That's very different (on both hypotheses) from what your test is doing.
This is exactly what i want to do. Unfortunately i couldn't find any things related with this case in UG and forum. I would greatly appreciate if you guide me how i can do this test.
Re: Balcilar, Gupta and Miller, EE 2015
Sorry Tom,TomDoan wrote:Sorry. What is "this"?
"This" refers to testing MS-VECM model against the linear VECM model.
Re: Balcilar, Gupta and Miller, EE 2015
The likelihood ratio test has a non-standard distribution because the transition probabilities aren't identified under the null. For options, see Garcia and Perron(1996), "An Analysis of the Real Interest Rate under Regime Shifts," The Review of Economics and Statistics, vol 78, no 1, 111-125. A common (and more straightforward) choice is to use BIC or AIC rather than try to do a formal nested hypothesis test.
Re: Balcilar, Gupta and Miller, EE 2015
Thank you Tom,TomDoan wrote:The likelihood ratio test has a non-standard distribution because the transition probabilities aren't identified under the null. For options, see Garcia and Perron(1996), "An Analysis of the Real Interest Rate under Regime Shifts," The Review of Economics and Statistics, vol 78, no 1, 111-125.
However i did did the LR test by obtaining two log likelihood (VECM & MS-VECM) and the result was in favor switching model, but as you mentioned in this case LR test is not recommended.
I should be compute "AIC" and "SBC" criteria for both linear VECM and non-linear (MS-VECM) model, then compare them together. did i understand correctly?A common (and more straightforward) choice is to use BIC or AIC rather than try to do a formal nested hypothesis test.
Sorry Tom but now Another question arise to me:
In line 135 and 136 (compute gprior) where the numbers (19.0,1.0) are from?
thanks in advance,
Re: Balcilar, Gupta and Miller, EE 2015
Yes. Though in this case, all of those will be somewhat misleading because of how high the log likelihood is in the switching case because of the long strings of zeroes.abi wrote:Thank you Tom,TomDoan wrote:The likelihood ratio test has a non-standard distribution because the transition probabilities aren't identified under the null. For options, see Garcia and Perron(1996), "An Analysis of the Real Interest Rate under Regime Shifts," The Review of Economics and Statistics, vol 78, no 1, 111-125.
However i did did the LR test by obtaining two log likelihood (VECM & MS-VECM) and the result was in favor switching model, but as you mentioned in this case LR test is not recommended.I should be compute "AIC" and "SBC" criteria for both linear VECM and non-linear (MS-VECM) model, then compare them together. did i understand correctly?A common (and more straightforward) choice is to use BIC or AIC rather than try to do a formal nested hypothesis test.
Read the comments above it:abi wrote: Sorry Tom but now Another question arise to me:
In line 135 and 136 (compute gprior) where the numbers (19.0,1.0) are from?
*
* Prior for transitions. Weak Dirichlet priors with preference for
* staying in a given regime.
*
dec vect[vect] gprior(nstates)
compute gprior(1)=||19.0,1.0||
compute gprior(2)=||1.0,19.0||
Re: Balcilar, Gupta and Miller, EE 2015
Thanks for a prompt reply. In fact the question is: why do not you use "||8.0,2.0||" instead of "||19.0,1.0||"?