cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Jackie_
Level VI

Select All Rows doesn't work

Hi,

 

I want to select all the rows in the Quantile Range Outlier and I just noticed Select all rows doesn't work with the following syntax. Any comments?

 

Jacksmith12_0-1630611396741.png

Thanks,

Jack

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: Select All Rows doesn't work

The syntax is a bit different here:

jthi_0-1630614218299.png

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Water Treatment.jmp");
obj = dt << Explore Outliers(Y(Column Group("Sensor Measurements")));
obj << Quantile Range Outliers(Tail Quantile(0.3));
obj << Select Rows(All);
-Jarmo

View solution in original post

txnelson
Super User

Re: Select All Rows doesn't work

The

dt << Select All Rows;

is a message that is only used in relationship to selecting all rows in a data table.  

What  you want to do, is to get all of the Quantile Outlier rows and select them.  In your example

obj << Select Rows( :"Q-E"n, :"ZN-E"n );

tells JMP to select the Quantile Outliers found for the columns, Q-E and ZN-E.

What needs to be done to select all of the rows, is to specify all of the columns being analyzed in the Explore Outliers platform.  In your case, that list of columns are all of the columns found in the Sensor Measurements group of columns.  Therefore, to get all of the names of the columns in that group, one simply uses

theGroup = dt << get column group( "Sensor Measurements");

and then sends the Select Rows message to the platform

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Water Treatment.jmp" );
obj = dt <<
Explore Outliers(
	Y( Column Group( "Sensor Measurements" ) )
);
obj << Quantile Range Outliers( Tail Quantile( 0.3 ) );
theGroup = dt << get column group( "Sensor Measurements");
obj << Select Rows( eval(theGroup));
Jim

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Select All Rows doesn't work

The syntax is a bit different here:

jthi_0-1630614218299.png

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Water Treatment.jmp");
obj = dt << Explore Outliers(Y(Column Group("Sensor Measurements")));
obj << Quantile Range Outliers(Tail Quantile(0.3));
obj << Select Rows(All);
-Jarmo
txnelson
Super User

Re: Select All Rows doesn't work

The

dt << Select All Rows;

is a message that is only used in relationship to selecting all rows in a data table.  

What  you want to do, is to get all of the Quantile Outlier rows and select them.  In your example

obj << Select Rows( :"Q-E"n, :"ZN-E"n );

tells JMP to select the Quantile Outliers found for the columns, Q-E and ZN-E.

What needs to be done to select all of the rows, is to specify all of the columns being analyzed in the Explore Outliers platform.  In your case, that list of columns are all of the columns found in the Sensor Measurements group of columns.  Therefore, to get all of the names of the columns in that group, one simply uses

theGroup = dt << get column group( "Sensor Measurements");

and then sends the Select Rows message to the platform

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Water Treatment.jmp" );
obj = dt <<
Explore Outliers(
	Y( Column Group( "Sensor Measurements" ) )
);
obj << Quantile Range Outliers( Tail Quantile( 0.3 ) );
theGroup = dt << get column group( "Sensor Measurements");
obj << Select Rows( eval(theGroup));
Jim

Recommended Articles