清除 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,谢谢你的回复。不幸的是,这个解决方案只能删除该框,但如果我们点击最大化并记住,就无法“将其恢复”。似乎应该有一种通用的方法来从轮廓框的下拉菜单中单击内容。