Hi @JulieSAppel
try the following script.
most likely you can do it faster with clicking out of menus but it will give you my general way of thinking.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = dt << Select Rows( [5, 7, 8, 10] );
r << Exclude;
dt << clear select;
// now we start
dt << Select Excluded;
dt << Name Selection in Column( Column Name( "Subset" ), Selected( "excluded" ), Unselected( "all others" ) );
dt << clear row states;
// do some analysis
New Window( "Analysis",
H List Box(
Distribution( Continuous Distribution( Column( :height ) ) ), // whole table (excluded and not excluded)
Distribution( Continuous Distribution( Column( :height ) ), where( :subset == "excluded" ) ), // only excluded
Distribution( Continuous Distribution( Column( :height ) ), where( :subset == "all others" ), ), // non excluded
)
);