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() 호출이 잘못되었으며 <
그래서 우리는 중복되는 것에 대해 걱정할 필요가 없다고 생각합니다. 아직. 그러나 여전히 그것은 나를 조금 놀라게했습니다.