Sto scrivendo uno script che utilizza il Prediction Profiler all'interno della piattaforma Fit Least Squares.
In particolare, sto utilizzando l'opzione Maximize and Remember , che salva le impostazioni del fattore nella Remembered Settings Outline Box. Dopo aver salvato alcune combinazioni, voglio cancellare le impostazioni. Se dovessi utilizzare JMP manualmente, potrei semplicemente andare al triangolo rosso vicino a "Remembered Settings" e cliccare su "Remove All". Come posso farlo in JSL?
Ho provato a leggere su Outline Boxes e sembra che ci siano alcune opzioni come "Set Menu Item State" o "Set Submenu", che potrebbero essere correlate. Tuttavia, non riesco a farlo funzionare e la documentazione non è esaustiva su questo argomento. Ogni aiuto è apprezzato.
Codice giocattolo per giocare:
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
// ??????
Non sono sicuro che questo farà la stessa cosa che premere Rimuovi tutto
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;Ciao Jarmo, grazie per la risposta. Sfortunatamente, questa soluzione funziona solo per eliminare la casella, ma non è possibile "ripristinarla" se clicchiamo su massimizza e ricordiamo. Sembra naturale che ci debba essere un modo generale per fare clic sulle cose dal menu a discesa da una casella di contorno.