Vietnam Quantitative Finance Society

User Name
Password
Go Back   Vietnam Quantitative Finance Society > Forums List > IT & Software
Reply
08-25-2007, 03:00 AM   #1
dutran

Core Member
Private
 
dutran's Avatar
 
Join Date: Jul 2007
Posts: 22
Thanks: 2
Thanked 2 Times in 1 Post




Default Any help with a AR-GARCH model issue on SAS system?

I am currently working on a large time series dataset. Due to the confidentiality issue, I can not post the dataset as well as the true nature of the case here, but let me make up an example:

We have a dataset which record daily transaction of gas from 1990 to 2000. Each observation contains price, quantity, revenue (price*quantity), weather statistics (temperature, windspeed, dew-point), and time statistics (weekdays or weekend, holiday or normal day, and months). Now suppose we have to run a regression with revenue being the dependent variable and the list of independent variables are weather statistics, time statistics and lag1 values of price and quantity.

1. Using autoreg procedure (SAS system), I proceed by testing for autocorrelation. Durbin-h test reveals that there is autocorrelation issue.

2. Using stepwise autoregression method, I can supposedly detect the order of autocorrelation. However, the output indicates that lag1 is dropped, but lag2 is not, and so on. A rule of thumb in this case is to specify an order larger than the order of any potential seasonality (n=5 for quarterly data, n=13 for monthly data). But this is a daily dataset. I tried up to n=366 and the output dropped around 290 lags and keep the remaining ones.

What can I do in this case? Should I use factored autoregressive models and use all the significant lag-orders in my regression?

3. The next step is testing for heteroskedasticity. I used Portmanteu Q - Test and ML test. The results suggest the presence of heteroskedasticity.

4. With both heteroskedasticity and autocorrelation issues. I tried to use AR(m)-GARCH(p,q) model for my regression. However, regardless of the parameters (m, p, q) I tried to use, the output window always return this:

ERROR: Likelihood function cannot be evaluated at initial point.

ERROR: Garch cannot be fit. Job will be terminated.

WARNING: OUTPUT data set will not be created since parameter estimates do not exist.

Since I am quite new to the SAS system and Time Series Analysis, I have no idea how to make it work. It seems that STATA allows users to supply some initial values when the system fails to do that. But I haven't found any similar suggestion for SAS system.
dutran is offline Reply With Quote
08-25-2007, 06:19 AM   #2
dutran

Core Member
Private
 
dutran's Avatar
 
Join Date: Jul 2007
Posts: 22
Thanks: 2
Thanked 2 Times in 1 Post




Default

Guys, regarding the error in (4), I figured it out already, thanks any way.
dutran is offline Reply With Quote
08-29-2007, 05:16 AM   #3
neomikeo

Member
Private
No Avatar
 
Join Date: Jul 2007
Posts: 25
Thanks: 1
Thanked 12 Times in 7 Posts




Default

Hi, you could use polynomial distributed lags PDL function with order of 2 or 3 in SAS and use Proc Model to estimate. PDL is good to capture very long lag structure.
neomikeo is offline Reply With Quote
08-31-2007, 08:36 AM   #4
dutran

Core Member
Private
 
dutran's Avatar
 
Join Date: Jul 2007
Posts: 22
Thanks: 2
Thanked 2 Times in 1 Post




Default

Thanks bác Minh. Tôi sẽ thử xem sao. Bình thường tôi vẫn dùng proc autoreg khi deal with time series vì cái này có nhiều build-in functions để dùng deal with autocorrelation, heteroskedasticity và autoregressive conditional heteroskedasticity.
dutran is offline Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is log-normal a good model for stock dynamics Khoa Tran Student Lounge 6 11-14-2007 11:39 AM
Markov switching model mimo Student Lounge 3 10-14-2007 02:12 AM

Save or bookmark this site with: Del.icio.usStumble It!AddThis.com
All times are GMT +7. The time now is 06:45 AM.
Powered by vBulletin Version 3.7.2