Search found 8 matches

by charly63
Sun Jun 22, 2014 1:42 pm
Forum: Looking for Code?
Topic: Common cycles test
Replies: 0
Views: 3792

Common cycles test

Hi, I was wondering if the rats procedure cancorr.src that computes the canonical correlation can be adapted to test for common and codependent cycles with a cointegrated VAR as in Vahid and Engle (1993), Common trends and common cycles, J. of Applied econometrics, 8 (4), and by the same authors (19...
by charly63
Tue Oct 29, 2013 2:43 pm
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

Thanks so much Tom, now the simulate code seems to work fine :D
by charly63
Tue Oct 29, 2013 12:42 pm
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

Yes, with some changing iteration option in the istruction maximize I got the estimation adapted at my data, but when I try to run the simulate example with my data I got that error message. I enclose my data file if you want to try to replicate it.
by charly63
Tue Oct 29, 2013 4:15 am
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

Dear Tom, thanks very much for the codes. However I would have a question, when I use the simulate code with a shorter sample (70 observations) it gives an error message ## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points The Error Occurred At Location 756, Line 28 of loop/block ...
by charly63
Fri Oct 25, 2013 5:40 pm
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

So, if I understand I should run a Monte Carlo test simulation with the instruction simulate in rats and compute the fractiles with the Statistics instruction.
by charly63
Fri Oct 25, 2013 1:18 pm
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

If I have understand well, given the MS equation Dy = c(st) + rho*y(t-1) + bt + g*Dy(t-i) One can easily compute the t-statistic t(rho) associated with rho=0, but its distribution is non standard and the procedure is that one should first save the ML parameter estimates and the residuals under the n...
by charly63
Fri Oct 25, 2013 7:49 am
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Re: Markov-switching UR test

Dear Tom,
thanks for your reply. I have not problems with the MS estimation of the equation, the problem is to bootstrap, under the null of unit root hypothesis, the simulated critical values, as the null distribution of such statistics (the ADF test) is unknown.

Charly
by charly63
Thu Oct 24, 2013 10:23 am
Forum: Looking for Code?
Topic: Markov-switching UR test
Replies: 14
Views: 26981

Markov-switching UR test

Dear Tom, I am working on gdp data and I would like to replicate in rats the results of the paper of S.G. Hall. Z. Psaradakis and M. Sola, "Detecting periodically collapsing bubble: A Markov-switching unit root test" J. of Appl. Economectrics, 1999, vol. 14 143-154, or a similar paper of M...