MS-ARIMA

Discussion of models with structural breaks or endogenous switching.
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

Hi Tom,
Is there any code available for calculating t-ratios by using delta method is using MLE?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

SUMMARIZE (second form) does that. (BTW, delta method is in the manual index).
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:SUMMARIZE (second form) does that. (BTW, delta method is in the manual index).
Hi tom, Thank you for your quick reply. I tried summarize instruction to calculate the t-test for P11 and P22 which are the functions of theta1 and theta2 from my estimation. However, I got error message like this all the time.

Code: Select all

## OP3 This Instruction Does Not Have An Option PAR 
>>>>summarize(parmset=<<<<. 
Could you please kindly take a look at my code and let me know where my mistake is? Many Thanks
Attachments
arma43(AW-GDP).RPF
(4.87 KiB) Downloaded 1216 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

PARMSET is a relatively new option (added with 8.2).
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:PARMSET is a relatively new option.
Thanks for the quick reply. I am using rats8.0. Does it mean I can not use the summarize instruction here? Is there another instruction I can use to calculate the t-ratio for P11 and P22?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

You should ask your department to get the software updated. However, with 8.0 you can do the same thing, but you have to use expressions with the clumsier %beta(position) to reference parameters.
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:You should ask your department to get the software updated. However, with 8.0 you can do the same thing, but you have to use expressions with the clumsier %beta(position) to reference parameters.
Thank you for the quick reply
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:SUMMARIZE (second form) does that. (BTW, delta method is in the manual index).
Hi Tom. I would like to get the statistical inference on Pii, exp(theta), by using simulation method. What instruction should I use? Is there any example I can take a look at? Many Thanks
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

"Instruction"? Gibbs sampling for a model like that is probably 100 lines of code. You would have to adapt the Kim-Nelson example to the ARMA model (which would require some form of Metropolis sampling) and time-varying transition probabilities (which would require sampling a logit model). Given that you're doing just two regimes, it would be simpler to switch to a probit-style function for the transition probabilities rather than a logit. The two should give very similar results, but Gibbs sampling is much simpler for a probit than a logit. (The logit is simpler to handle for the TVTP if you have three or more regimes).
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:"Instruction"? Gibbs sampling for a model like that is probably 100 lines of code. You would have to adapt the Kim-Nelson example to the ARMA model (which would require some form of Metropolis sampling) and time-varying transition probabilities (which would require sampling a logit model). Given that you're doing just two regimes, it would be simpler to switch to a probit-style function for the transition probabilities rather than a logit. The two should give very similar results, but Gibbs sampling is much simpler for a probit than a logit. (The logit is simpler to handle for the TVTP if you have three or more regimes).
Hi Tom. Thank you for your detailed explanation. In addition to the Gibbs sampling and delta method, is there any other method I could use to generate the statistical inference on p=exp(theta)/(1+exp(theta)) given theta is the estimate from the model?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

Not really. I don't see bootstrapping as an option with a model like this.
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:Not really. I don't see bootstrapping as an option with a model like this.
Dear Tom, thank you for the reply. The examples in the Kim and Nelson's book (state-space model with regime switching) report the estimated probabilities (p and q), instead of the thetas. Your codes for the examples give us the estimated thetas only. Therefore, I am wondering how I can get the estimated probabilities and their statistical inferences as ones reported in the book. One way I know is to apply the delta method, is there any other method for obtaining the estimated probabilities and their statistical inferences. Thank you in advance
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

Didn't I just answer that? What's wrong with the delta method?
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: MS-ARIMA

Unread post by fan »

TomDoan wrote:Didn't I just answer that? What's wrong with the delta method?
Thank you for the answer. There is nothing wrong with the delta method. I just would like to know why the results calculated from the delta method are so different from the ones reported in the text book.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: MS-ARIMA

Unread post by TomDoan »

Could you cite a specific example?
Post Reply