Hi. I am writing a subroutine which involves estimating an ARIMA model, say mysubroutine. I would like it to be able to provide the ARIMA parameters when I call the subroutine, say mysubroutine(y,x,a,b,c). This routine would will take series x, parameters a, b and c as inputs and estimate ls d(x,a) c ar(1) ... ar(b) ma(1) ... ma(c), before eventually generating an output series y.
How should I write the codes for the ARIMA part in the subroutine? Thanks a lot.
Feeding ARIMA parameters to a subroutine
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Feeding ARIMA parameters to a subroutine
This program builds up an ARIMA string:
http://forums.eviews.com/viewtopic.php?f=15&t=1175
http://forums.eviews.com/viewtopic.php?f=15&t=1175
Re: Feeding ARIMA parameters to a subroutine
Thank you very much. I modified the codes and am now able to write my subroutine.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Feeding ARIMA parameters to a subroutine
I should point out that in EViews 8 you can simply do:
Code: Select all
ar(1 to {b}) ma(1 to {c})
Re: Feeding ARIMA parameters to a subroutine
Thanks, it looks like I should ask my school to update the Eviews we have. BTW, when I embed the modified ARIMA codes into the subroutine and use the the subroutine in a loop, Eviews crushed in a few seconds. Then I reduce the amount of string variables (those "%*" variables) used in the ARIMA codes, it solves the problem, but running the loop is quite slow.
I should point out that in EViews 8 you can simply do:Code: Select all
ar(1 to {b}) ma(1 to {c})
Who is online
Users browsing this forum: No registered users and 2 guests
