當心 SE,機器人正在向我們襲來。
我問聊天GPT今天早上: ”你能為我用 JSL 編寫一個 JMP 腳本來創建數據集中所有連續列的分佈分析嗎?” 這是它返回的內容:
// Get the current data table
dt = Current Data Table();
// Get a list of all continuous columns in the data table
continuousCols = dt << Get Column Names( Continuous );
// Loop through each continuous column
for( i = 1, i <= N Items( continuousCols ), i++,
// Get the current column name
colName = continuousCols[i];
// Create a distribution analysis for the current column
dt << Distribution(
Continuous Distribution( Column( colName ) ),
Fit Distribution( Normal )
);
);
檢查一下,它運行了!! 然後我回答說:“那很好,但我想要的是單個分佈報告中的結果,而不是多個報告中的結果。” 它給了我這個:
// Get the current data table
dt = Current Data Table();
// Create a new distribution report
distReport = Distribution( Continuous );
// Get a list of all continuous columns in the data table
continuousCols = dt << Get Column Names( Continuous );
// Loop through each continuous column
for( i = 1, i <= N Items( continuousCols ), i++,
// Get the current column name
colName = continuousCols[i];
// Add a distribution analysis for the current column to the report
distReport << Add Column(
Continuous Distribution( Column( colName ) ),
Fit Distribution( Normal )
);
);
// Display the distribution report
distReport << Show;
這個沒有運行有幾個原因:Distribution() 調用錯誤,<
所以我想我們不必擔心變得多餘。 然而。 但是,這還是讓我有點害怕。