清除 Profiler 中記住的設定?我正在編寫一個腳本,該腳本使用擬合最小二乘平台內的預測刻畫器。
特別是,我正在使用“最大化並記住”選項,它將因子設定保存到“記住的設定大綱”框中。儲存某些組合後,我想清除設定。如果我手動使用 JMP,我只需透過「記住的設定」前往紅色三角形,然後按一下「全部刪除」。我怎麼能在 JSL 中做到這一點?
我嘗試閱讀有關大綱框的內容,似乎有一些選項,例如“設定選單項目狀態”或“設定子選單”,可能與之相關。但是,我無法讓它工作,並且有關該主題的文檔並不廣泛。任何幫助表示讚賞。
玩具代碼:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
Fit Model(
Y( :ABRASION ),
Effects( :SILICA, :SILANE, :SULFUR ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Screening" ),
Run(
:ABRASION << {Summary of Fit( 0 ), Analysis of Variance( 0 ),
Parameter Estimates( 1 ), Effect Details( 0 ), Sorted Estimates( 0 ),
Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 1 ),
Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
Box Cox Y Transformation( 0 ), Profiler(
1,
Confidence Intervals( 1 ),
Desirability Functions( 1 ),
)}
),
SendToReport(
Dispatch( {}, "Actual by Predicted Plot", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Effect Summary", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Lack Of Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Residual by Predicted Plot", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Studentized Residuals", OutlineBox, {Close( 1 )} )
)
);
// Get current report and profiler
current_rep = current report();
pf=current_rep["Prediction Profiler"] << get scriptable object;
// maximize and remember
pf << maximize and remember;
// clear remembered settings
// ??????
自動化和腳本編寫回覆:清除 Profiler 中記住的設定?我不確定這是否會執行與按全部刪除相同的操作
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp");
fm = dt << Fit Model(
Y(:ABRASION),
Effects(:SILICA, :SILANE, :SULFUR),
Personality("Standard Least Squares"),
Emphasis("Effect Screening"),
Run(
:ABRASION << {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(1),
Effect Details(0), Sorted Estimates(0), Plot Actual by Predicted(1), Plot Regression(0),
Plot Residual by Predicted(1), Plot Studentized Residuals(1), Plot Effect Leverage(0),
Plot Residual by Normal Quantiles(0), Box Cox Y Transformation(0),
Profiler(1, Confidence Intervals(1), Desirability Functions(1), )}
),
SendToReport(
Dispatch({}, "Actual by Predicted Plot", OutlineBox, {Close(1)}),
Dispatch({}, "Effect Summary", OutlineBox, {Close(1)}),
Dispatch({}, "Lack Of Fit", OutlineBox, {Close(1)}),
Dispatch({}, "Residual by Predicted Plot", OutlineBox, {Close(1)}),
Dispatch({}, "Studentized Residuals", OutlineBox, {Close(1)})
)
);
pf = Report(fm)[Outlinebox("Prediction Profiler")] << get scriptable object;
pf << maximize and remember;
Report(fm)[Outline Box("Remembered Settings")] << Delete Box;回覆:清除 Profiler 中記住的設定?你好,Jarmo,謝謝你的回覆。不幸的是,該解決方案僅適用於刪除該框,但如果我們單擊最大化並記住,則無法「將其恢復」。似乎很自然,應該有一種通用方法可以從大綱框中的下拉式選單中點擊內容。