Sto scrivendo script Explore Outliers in jsl e funziona benissimo con l'algoritmo k sigma. Tuttavia, lo script che ho ricevuto da questa comunità jmp cambia i valori anomali in mancanti, ma come posso impostarli per nascondere ed escludere invece?
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
);