Calculating column mean before and after excluding a row is giving me same values via JSL. It is different as expected when obtained from the distribution platform. Where am I going wrong in JSL?
Names Default To Here( 1 );
Clear Log();
dt = Open( "$sample_data\Semiconductor Capability.jmp" ); // get data table
//get spec limits into column properties
obj = dt << Manage Spec Limits( Y( dt << Get Column Group( "Processes" ) ), Show Limits All, Save to Column Properties(1) );
obj << close window; // close Manage Spec Limits window
colName = "M1_M1"; // choose column
colMean = Col Mean(dt:colName); show (colMean); // get column mean
colMin = Col Minimum(dt:colName); show (colMin); // get column minimum value
//plot distribution
Distribution(Stack(1), Continuous Distribution(Column(:M1_M1 ), Horizontal Layout(1),Vertical(0), Process Capability(0)));
dt << select where( dt:colName == colMin)<< Hide and Exclude; // hide and exclude the minimim value of the column
colMeanNew = Col Mean(dt:colName); show (colMeanNew); // get column mean again
//plot distribution again
Distribution(Stack(1), Continuous Distribution(Column(:M1_M1 ), Horizontal Layout(1),Vertical(0), Process Capability(0)));
![Neo_0-1700783477443.png Neo_0-1700783477443.png](https://community.jmp.com/t5/image/serverpage/image-id/59053iD478B40A331D1138/image-size/medium?v=v2&px=400)
![Neo_1-1700783494869.png Neo_1-1700783494869.png](https://community.jmp.com/t5/image/serverpage/image-id/59054i5765B5FB4948B457/image-size/medium?v=v2&px=400)
![Neo_2-1700783791381.png Neo_2-1700783791381.png](https://community.jmp.com/t5/image/serverpage/image-id/59055i4BC7C6AA84EBD4EA/image-size/medium?v=v2&px=400)
When it's too good to be true, it's neither