cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-668394%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERobust%20Fit%20Outliers%20-%20%EB%8B%A4%EB%A5%B8%20%ED%96%89%20%EC%A7%91%ED%95%A9%EC%9D%B4%20%EC%84%A0%ED%83%9D%EB%90%98%EA%B3%A0%20%EC%9D%B4%EC%83%81%EA%B0%92%EC%9C%BC%EB%A1%9C%20%EC%A0%9C%EC%99%B8%EB%90%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-668394%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%BB%A4%EB%AE%A4%EB%8B%88%ED%8B%B0%20%EC%97%AC%EB%9F%AC%EB%B6%84%2C%3C%2FP%3E%3CP%3E%EB%88%84%EC%A0%81%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%B4%20%EC%9E%88%EA%B3%A0%20%EB%A0%88%EC%9D%B4%EB%B8%94(%EC%98%88%3A%20%EC%9D%BC%EB%B6%80%20%EC%B8%A1%EC%A0%95%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%9A%94%EC%86%8C)%EB%B3%84%EB%A1%9C%20%EC%9D%B4%EC%83%81%EA%B0%92%EC%9D%84%20%EC%A0%9C%EC%99%B8%ED%95%98%EB%A0%A4%EA%B3%A0%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3ERobust%20fit%20%EC%9D%B4%EC%83%81%EA%B0%92%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%97%90%EC%84%9C%20%EC%9D%B4%EC%83%81%EA%B0%92%EC%9D%84%20%EA%B0%90%EC%A7%80%ED%95%98%EA%B3%A0%20%ED%95%B4%EB%8B%B9%20%ED%96%89%EC%9D%84%20%EC%84%A0%ED%83%9D%ED%95%98%EA%B1%B0%EB%82%98%20%EC%A0%9C%EC%99%B8%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EB%82%B4%20%EC%9D%B4%ED%95%B4%EB%A5%BC%20%EC%9C%84%ED%95%B4%20%EC%84%A0%ED%83%9D%EB%90%98%EA%B1%B0%EB%82%98%20%EC%A0%9C%EC%99%B8%EB%90%9C%20%ED%96%89%EC%9D%80%20%EC%A0%95%ED%99%95%ED%9E%88%20%EB%8F%99%EC%9D%BC%ED%95%9C%20%ED%96%89%EC%9D%B4%EC%96%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EA%B7%B8%EB%A6%AC%EA%B3%A0%20%EC%95%84%EB%9E%98%20JSL%EC%97%90%EC%84%9C%20%EC%82%AC%EC%9A%A9%EB%90%98%EB%8A%94%20%EC%95%84%EB%9E%98%20%EC%83%98%ED%94%8C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%98%20%EA%B2%BD%EC%9A%B0%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2F%20from%20scripting%20index%0A%0ANames%20Default%20To%20Here(%201%20)%3B%0A%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FWater%20Treatment.jmp%22%20)%3B%0A%0A%2F%2F%20similar%2C%20but%20stacked%20data%20and%20usage%20of%20by%20role%0A%0Adt_stack%20%3D%20dt%20%26lt%3B%26lt%3B%20Stack(%0A%20columns(%20Column%20Group(%20%22Sensor%20Measurements%22%20)%20)%2C%0A%20Source%20Label%20Column(%20%22Label%22%20)%2C%0A%20Stacked%20Data%20Column(%20%22Data%22%20)%2C%0A%20Output%20Table(%20%22Water%20Treatment%20stacked.jmp%22%20)%0A)%3B%0A%0Aobj_select%20%3D%20dt_stack%20%26lt%3B%26lt%3B%20Explore%20Outliers(%20Y(%20%3AData%20)%2C%20By(%20%3ALabel%20)%2C%20Robust%20fit%20outliers%2C%20select%20rows()%20)%3B%0Aobj_exclude%20%3D%20dt_stack%20%26lt%3B%26lt%3B%20Explore%20Outliers(%20Y(%20%3AData%20)%2C%20By(%20%3ALabel%20)%2C%20Robust%20fit%20outliers%2C%20exclude%20rows()%20)%3B%0AShow(%20N%20Items(%20dt_stack%20%26lt%3B%26lt%3B%20get%20selected%20rows()%20)%2C%20N%20Items(%20dt_stack%20%26lt%3B%26lt%3B%20get%20excluded%20rows()%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%EA%B7%B8%EB%9F%AC%EB%82%98%20%EC%8B%A4%EC%A0%9C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EA%B2%BD%EC%9A%B0%20%EB%8B%A4%EB%A5%B8%20%ED%96%89%EC%9D%84%20%EC%84%A0%ED%83%9D%ED%95%98%EA%B3%A0%20%EC%A0%9C%EC%99%B8%ED%95%A9%EB%8B%88%EB%8B%A4.%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%B4%20%EC%9D%B4%EC%83%81%EA%B0%92%EC%9D%84%20%EC%8B%9D%EB%B3%84%ED%95%98%EB%8A%94%20%EB%8D%B0%20%EC%9E%98%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%EB%A7%8C%20%EC%A0%9C%EC%99%B8%20%EC%9E%91%EC%97%85%EC%9D%B4%20%ED%95%98%EB%82%98%EC%9D%98%20%ED%96%89(%EC%9D%B4%EC%83%81%EA%B0%92%EC%9C%BC%EB%A1%9C%20%EC%84%A0%ED%83%9D%EB%90%A8)%EC%9D%84%20%EC%A0%9C%EC%99%B8%ED%95%98%EC%A7%80%20%EB%AA%BB%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9C%BC%EB%A1%9C%20%EB%B3%B4%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EC%9D%B4%20%ED%96%89%EB%8F%99%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%95%84%EC%9D%B4%EB%94%94%EC%96%B4%EA%B0%80%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Georg_0-1692178566774.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1692178566774.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1692178566774.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F55790iECF6E83666F95BFA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Georg_0-1692178566774.png%22%20alt%3D%22Georg_0-1692178566774.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-668394%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%EC%9E%90%EB%8F%99%ED%99%94%20%EB%B0%8F%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%98%BC%ED%95%A9%20%EB%B0%8F%20%EC%A0%95%EB%A6%AC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
Georg
Level VII

Robust Fit Outliers - different row set selected and excluded as outliers

Dear community,

I have a stacked data table, and want to exclude outliers by a Label (e.g. an element for some measurements).

In the robust fit outlier platform I can detect outliers and than can select or exclude corresponding rows.

For my understanding, rows that are selected than or excluded, should be exactly the same ones.

And that is the case for the below sample data table used in the JSL below.

 

// from scripting index

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Water Treatment.jmp" );

// similar, but stacked data and usage of by role

dt_stack = dt << Stack(
	columns( Column Group( "Sensor Measurements" ) ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" ),
	Output Table( "Water Treatment stacked.jmp" )
);

obj_select = dt_stack << Explore Outliers( Y( :Data ), By( :Label ), Robust fit outliers, select rows() );
obj_exclude = dt_stack << Explore Outliers( Y( :Data ), By( :Label ), Robust fit outliers, exclude rows() );
Show( N Items( dt_stack << get selected rows() ), N Items( dt_stack << get excluded rows() ) );

But in my case with real data, I get different rows selected and excluded, it looks to me that the platform works well in identifying the outliers, but the exclude operation fails to exclude one row (that has been selected as outlier).

Any idea on this behaviour?

 

Georg_0-1692178566774.png

 

Georg
0 REPLIES 0