BookmarkSubscribeRSS Feed
agm65
Calcite | Level 5

I have a electricity consumption daily time series.  Data are from the last 3 years. 

I have adjusted a (0,1,1) model after difference (1) the log transformed series. (checked stationarity). I have identified some outliers but any of them resulted significant when I included it as regressors.

It seems that there is not autocorrelation in the residuals (tests OK)  but the heteroscedasticity  tests are not fulfilled. Tried to model the residuals with arch models but cannot fix the problem of heteroscedasticity (conditional and unconditional). 

Any alternatives?

proc arima data=work.series;
               identify var=lvalor(1) stationarity=(dickey) nlag=30;
            estimate p=(1) q=(1)  noint     method=ml;
*outlier maxnum=5 alpha=0.01 id=fecha;
forecast id=fecha interval=day out=b;
        run;
        quit;
 

proc model data=b;
parms const;
residual = const ;
fit residual / white breusch=(1 time);
run;
quit;
 
proc autoreg data=b; 
   model residual=  /  garch=(Q=2, p=2) maxit=50;
   output out=out R=pepe;
run;
2 REPLIES 2
SASCom1
SAS Employee

In PROC AUTOREG, in addition to ARCH/GARCH model specification, you can also use HETERO statement to specify error variance function:

 

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_autoreg_syntax11.htm

 

And the HETERO statement can also be used with GARCH model together to specify additional variables in the variance function to the standard GARCH equation as discussed here:

 

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_autoreg_details12.htm#etsug.au...

 

 

PROC MODEL allows more flexible specification of error variance structures as discussed here:

 

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_model_sect133.htm

 

If you have specific form of heteroscedasticity but not sure how to specify your model, please provide more details.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Discussion stats
  • 2 replies
  • 801 views
  • 0 likes
  • 3 in conversation