How to save ARIMA formula from script?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
Re: How to save ARIMA formula from script?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
Re: How to save ARIMA formula from script?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!
Re: How to save ARIMA formula from script?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;