그래프 빌더에서 시간 계열 예측 플롯을 유지할 수 있는지 궁금합니다. 저의 상사가 앞으로 추세를 읽을 수있을 정도로 즉시 계획을 세우십시오. 이미 만든 플롯은 x를 그룹화했기 때문에 하나의 단일 플롯에 여러 개의 예측 된 선이 표시되어야합니다.
fowllowing 스크립트는 시계열 예측 음모입니다 :
Time Series(
X( :date ),
Y( :CD ),
ARIMA( 0, 1, 0 ),
SendToReport(
Dispatch(
{"Model: I(1) ", "Forecast"},
"Time Series Predicted Graph",
FrameBox,
{Frame Size( 659, 144 )}
)
)
);
시계열 예측은 다른 플랫폼처럼 앞으로 나아 가지 않습니다. 이 문제를 해결하기 위해 :
- 플랫폼에서 시계열 스크립트를 저장했지만 시간 시리즈 ()와 계절 Arima () 함수로 나눕니다.
- 예측을 새 테이블에 저장했습니다.
- 원본 테이블에 스크립트를 다시 복사했습니다.
- 그래프를 만들었습니다.

Names default to here( 1 );
//Open sample data
dt = Open( "$Sample_data/time series/co2.jmp" );
//Add rows to the original table
dt << Add rows( 12 );
//Calculate date for future rows
dt << New Column( "Year&Month Future",
Numeric,
"Continuous",
Formula(
If( Is Missing( :Name( "Year&Month" ) ),
Lag( :Name( "Year&Month Future" ), 1 ) + 1 / 24,
:Name( "Year&Month" )
)
)
);
//Open time series
ts = dt << Time Series( Y( :CO2 ) );
//Add Arima
ar = ts << Seasonal Arima( 1, 1, 0, 0, 1, 1, 12 );
//Make a new table with predications
dtArima = ar << Save Prediction Formula;
//Graph with predictions in a separate data table
dtArima << Graph Builder(
Size( 493, 303 ),
Show Control Panel( 0 ),
Variables(
X( :Row ),
Y( :Actual CO2 ),
Y( :Predicted CO2, Position( 1 ) ) ),
Elements(
Points( X, Y( 1 ),
Legend( 19 ) ),
Line( X, Y( 2 ),
Legend( 20 ) ) )
);
//Or add predictions to original table:
//Copy the prediction formula and replace the column name, then save it to the original
//data table
Eval( Parse(
"dt << " ||
Substitute(
Char((Column(dtArima, "CO2 Prediction Formula" ) << Get Script ) ),
":Actual ",
":"
)
) );
/*
//Close temporary windows
ts << Close Window
dtArima << Close Window;
*/
//Graph with predictions in the original table
dt << Graph Builder(
Size( 493, 303 ),
Show Control Panel( 0 ),
Variables(
X( :Name("Year&Month Future") ),
Y( :CO2 ),
Y( :CO2 Prediction Formula, Position( 1 ) ) ),
Elements(
Points( X, Y( 1 ),
Legend( 19 ) ),
Line( X, Y( 2 ),
Legend( 20 ) ) )
);