Subscribe Bookmark RSS Feed

How to save ARIMA formula from script?

gutloja

Community Trekker

Joined:

Jul 31, 2015

Hello, All

 

Is there an efective way to automatically save predictive formulas of ARIMA models?

Here is what I am trying, but the code does not work:

 

 

Data = Time Series(
	X( :RowNO ),
	Y( :Name( "8_LIMITS" ) ),
	ARIMA( 1, 1, 4, No Intercept( 1 ) ),
);

Data << (curve[1]  << Save prediction formula);

 

Any help will be appreciated!

-Jose

 

3 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

Here is the example from the Scripting Index on how to do that:

     Help==>Scripting Index==>Time Series==>ARIMA==>Save Prediction Formula

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Time Series/Steel Shipments.jmp" );
obj = Time Series( Y( :Steel Shipments ) );
obj2 = obj << Arima( 1, 0, 0 );
obj2 << Save Prediction Formula;
Jim
gutloja

Community Trekker

Joined:

Jul 31, 2015

Hi,

 

I tried this script, but it keeps saving the predicted values on a different datatable. 

Is there a way to save it to the same data table, in a new column?

 

Thanks!

txnelson

Super User

Joined:

Jun 22, 2012

The data are saved to a new table because includes the forecasted predicted values in addition to the actual values.  However, all you have to do is to use a table join to add the data from the new table back to the original data table.

 

     Tables==>Join

Jim