AUC値の取得方法ロジスティック回帰出力から AUC 値を取得し、テーブルに書き込もうとしています。 これまでのところ、私のスクリプトは、以下の出力に示すように、0.62937 ではなく空白の値を返します。 データ テーブルが正しく作成され、「モデルの適合」コマンドが実行されます。 最後の行に間違いはありませんか? このフォーラムの別の投稿の例に従っていますが、古いバージョンの JMP (バージョン 9.0) が問題である可能性があると思われます。
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]);


自動化とスクリプト作成Re: AUC値の取得方法AUC のエントリは Number Col Box() のようには見えません。使用している JMP のバージョンとオペレーティング システムは何ですか?
見た目はテキストボックスに似ています。
さまざまなバージョンの JMP を実行したところ、表示されている AUC の形式が表示されません。
Re: AUC値の取得方法Windows11でJMP9.0.0を使用しています。 最後の行を次のように変更すると、
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][TextBox(6)] << get text );
次に、文字列「Area Under Curve =」が変数「AUC」の結果として返されます。 以下はツリー構造の一部です。 抽出しようとしているのは NumberBox(1) の値です。

Re: AUC値の取得方法末尾の「)」を部分文字列参照「[1]」の前に移動してみてください。
:AUC = (Report( MyResult )["Receiver Operating Characteristic"][Number Col Box( 1 )] << get )[1];
Re: AUC値の取得方法ご協力ありがとうございます、テキネルソンさん! 最終的に、これがうまくいきました:
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);