我正在嘗試從邏輯回歸輸出中獲取 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]);

