cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

Randomize rows from a datatable

Victor_G
Super User

Hi dear Community,

 

I have searched the Community for this question but was not able to find an answer.

 

Due to specific objectives, I created a DoE using first a D-Optimal approach (24 rows) and then augmenting it with Space-Filling augmentation (adding 16 rows). The problem I'm facing is that rows are not randomized for the entire design, you can clearly see the initial rows are from D-Optimal design and the next ones are from Space-Filling augmentation :

Victor_G_0-1742466936149.png


Is there an option to randomize rows once the complete design is created, to mix rows from D-Optimal and from Space-Filling ?

 

Thanks in advance for any inputs,

 

EDIT : I might have found a workaround using an "ID" column to identify experiments, and using "Shuffle without replacement" to randomize order of the experiments. But if something more practical exists, that would be easier ! 

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User


Re: Randomize rows from a datatable

I think one option could be to create subset with sampling rate of 1

jthi_0-1742467413563.png

 

-Jarmo

View solution in original post

5 REPLIES 5
jthi
Super User


Re: Randomize rows from a datatable

I think one option could be to create subset with sampling rate of 1

jthi_0-1742467413563.png

 

-Jarmo
Victor_G
Super User


Re: Randomize rows from a datatable

Thanks a lot @jthi !
Works like a charm and it's a lot faster than what I intended to use (creating an ID column, then a shuffle version of this ID on a new table, and then joining the info from the factors columns of the first table to the new shuffled table by matching the ID columns).

Maybe a new option could be added in the Augment design platform to enable randomization of the entire design ?

Many thanks !

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
jthi
Super User


Re: Randomize rows from a datatable

Yeah, I think there should be possibility to randomize JMP table in place (maybe with some extra options?). It could be under Table or Rows menu. So maybe we should create wish list item about it UNLESS there is already one.

-Jarmo
Victor_G
Super User


Re: Randomize rows from a datatable

I haven't seen similar Wish list item, so here it is : Randomize rows from a datatable 

Thanks for the help @jthi

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
hogi
Level XII


Re: Randomize rows from a datatable

another approach:

  • add a column with random number
  • sort by this column
  • delete the column

hogi_0-1742574016206.png

hogi_1-1742574079725.png

 

Either via Subset of via the additional column - it's super easy to create an AddIn to make this functionality available from the main menu.


Not so easy:
make sort possible if there is a (linked) subset:
Sort data table + add rows + concatenate -- make it possible