jsl에서 이상값 탐색을 스크립팅하고 있으며 k 시그마 알고리즘과 잘 작동합니다. 그러나이 jmp 커뮤니티에서 얻은 스크립트는 이상 치를 누락으로 변경하지만 대신 숨기고 제외하도록 어떻게 설정합니까?
dt1 = Current Data Table();
eo = dt1 << Explore Outliers(
Y( :var1 ),
K Sigma( 2 ),
Robust Fit Outliers,
Where(
:x == 1
),
Invisible
);
eoRep = Report(eo);
table = eoRep[TableBox(1)];
colList = eoRep[StringColBox(1)];
// Loop over these columns . . .
nCols = NItems(colList << get);
for(c=1, c<=nCols, c++,
// Select this column (described by a row)
CMD = Expr( table << setSelectedRows({colTBD}) );
SubstituteInto(CMD, Expr(colTBD), Eval(c));
CMD;
// Update dt2 for this column: Cells that were considered outliers are coloured red
eo << ColorCells(1);
eo << ChangeToMissing(1); //<<---------- this line here
);