BookmarkSubscribeRSS Feed
Zuhdiyah
Fluorite | Level 6

I want to do some simulation on ARIMA model by changing the confidence level from 0.1 to 99.9. I have a defined coefficient or parameter estimation for each of parameters. How can I use PROC ARIMA or PROC FORECAST to do this? For example, I want to do simulation for ARIMA (4,0,1) and I already have coefficients for AR1-AR4 along with MA1. I just want to change my confidence level to generate different lower and upper value. Thank you.

7 REPLIES 7
PaigeMiller
Diamond | Level 26

In PROC ARIMA, both the FORECAST statement and the IDENTIFY statement has an option ALPHA= which allows you to change the alpha used for confidence intervals.

--
Paige Miller
Zuhdiyah
Fluorite | Level 6
yes, for that alpha I know. My question is how can I input my coefficient (parameter estimation) instead of SAS doing the estimation?
PaigeMiller
Diamond | Level 26

Well, I must say I was confused from your question whether you were asking about how to change alpha or how to do estimation for fixed model parameters, or both, or neither.

 

Please look at the NOEST option in the documentation for the ESTIMATE statement.

--
Paige Miller
Zuhdiyah
Fluorite | Level 6
sorry, if it was confusing.

Thanks for your suggestion, I will look into it.
Zuhdiyah
Fluorite | Level 6

Can you please help me how to write the codes?

Let's say I have an ARIMA model (2,0,1) and the coefficients are as below:

AR1=0.5

AR2=0.8

MA1=3.5

I want to generate the forecast with confidence level for 0.5, 0.7, and 0.9, can the below codes work?

 

proc arima data=mydata;
identify var=hist; 
estimate ar=0.5 0.8 ma=3.5 noest; 
forecast id=date interval=month lead=12 alpha=0.5 out=myoutput;
run;

 

Thank you.

PaigeMiller
Diamond | Level 26

@Zuhdiyah wrote:

Can you please help me how to write the codes?

Let's say I have an ARIMA model (2,0,1) and the coefficients are as below:

AR1=0.5

AR2=0.8

MA1=3.5

I want to generate the forecast with confidence level for 0.5, 0.7, and 0.9, can the below codes work?

 

proc arima data=mydata;
identify var=hist; 
estimate ar=0.5 0.8 ma=3.5 noest; 
forecast id=date interval=month lead=12 alpha=0.5 out=myoutput;
run;

 

Thank you.


What is wrong with the code you show?

--
Paige Miller
Ksharp
Super User

You can simulate ARIMA time series data by ARMASIM() in SAS/IML.
Check its documentation in support.sas.com

 

Ksharp_0-1680525647916.png

 

P.S.  @Rick_SAS might would write a blog about this topic .

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1092 views
  • 0 likes
  • 3 in conversation