Come ottenere il valore AUCSto cercando di ottenere il valore AUC dall'output della regressione logistica e di scriverlo in una tabella. Finora, il mio script restituisce un valore vuoto anziché 0,62937 come mostrato nell'output seguente. La tabella dati viene creata correttamente e viene eseguito il comando "fit model". C'è un errore nell'ultima riga? Sto seguendo un esempio in un altro post in questo forum, ma sospetto che la mia versione precedente di JMP (versione 9.0) possa rappresentare un problema.
Names Default To Here( 1 );
// Open data table
dt = Open( "sample.jmp" );
// Create an output data table for the results
MyTable = New Table( "Results", New Column( "AUC" ) );
// Add a new row to the output data table
MyTable << Add Rows( 1 );
// Run Fit Model
MyResult = dt << Fit Model(Y( :case ),Effects( :weight ),Personality( Nominal Logistic ),Run(Positive Level( "1" ),Likelihood Ratio Tests( 1 ),ROC Curve( 1 ),));
// Add the AUC to the data table by grabbing it from the display report output
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][Number Col Box( 1 )] << get [1]);


Automazione e scriptingRi: Come ottenere il valore AUCLa voce per l'AUC non sembra un Number Col Box().Quale versione di JMP stai utilizzando e su quale sistema operativo è in esecuzione?
Sembra più una casella di testo.
Mentre eseguo varie versioni di JMP, non vedo il formato AUC che stai mostrando.
Ri: Come ottenere il valore AUCSto utilizzando JMP9.0.0 su Windows 11. Se cambio l'ultima riga in:
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][TextBox(6)] << get text );
Quindi come risultato per la variabile 'AUC' viene restituita la stringa "Area Under Curve =". Ecco una parte della struttura ad albero. È quel valore in NumberBox(1) che sto cercando di estrarre.

Ri: Come ottenere il valore AUCProva a spostare il carattere ")" finale prima del riferimento alla sottostringa "[1]"
:AUC = (Report( MyResult )["Receiver Operating Characteristic"][Number Col Box( 1 )] << get )[1];
Ri: Come ottenere il valore AUCGrazie per il tuo aiuto, txnelson! Alla fine, questo è ciò che ha funzionato:
Names Default To Here( 1 );
// Open data table
dt = Open( "sample.jmp" );
// Create an output data table for the results
MyTable = New Table( "Results", New Column( "AUC" ) );
// Add a new row to the output data table
MyTable << Add Rows( 1 );
// Run Fit Model
MyResult = dt << Fit Model(Y( :case ),Effects( :weight ),Personality( Nominal Logistic ),Run(Positive Level( "1" ),Likelihood Ratio Tests( 1 ),ROC Curve( 1 ),));
// Add the AUC to the data table by grabbing it from the display report output
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][numberbox(1)] << get text);