Estoy escribiendo un script que utiliza el Prediction Profiler dentro de la plataforma Fit Least Squares.
En particular, estoy utilizando la opción Maximizar y recordar , que guarda la configuración de los factores en el cuadro Esquema de configuraciones recordadas. Después de guardar ciertas combinaciones, quiero borrar las configuraciones. Si estuviera usando JMP manualmente, simplemente podría ir al triángulo rojo junto a "Configuraciones recordadas" y hacer clic en "Eliminar todo". ¿Cómo puedo hacer esto en JSL?
Intenté leer sobre los cuadros de esquema y parece que hay algunas opciones como "Establecer estado del elemento del menú" o "Establecer submenú", que podrían estar relacionadas. Sin embargo, no puedo hacer que funcione y la documentación no es extensa con respecto a este tema. Se agradece cualquier ayuda.
Código de juguete para jugar:
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
// ??????
No estoy seguro de si esto hará lo mismo que presionar eliminar todo.
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;Hola Jarmo, gracias por la respuesta. Lamentablemente, esta solución solo funciona para eliminar el cuadro, pero no se puede "recuperar" si hacemos clic en maximizar y recordar. Parece natural que exista una forma general de hacer clic en elementos del menú desplegable desde un cuadro de esquema.