When creating multiple variability graphs, JMP generates a script example similar to the code below that includes the multiple Y Response columns as a comma separated list.
Variability Chart(
Y( :Col1, :Col2 ),
Model( "Main Effect" ),
X( :unit )
);
If I have a list of columns that I would like to generate graphs for:
ListofColumnNames = dt << Get Column Names();
ListofColumnNames = {Col1, Col2, ...};
Is there a way to expand this list in line to create essentially the same comma separated list that JMP created?
Variability Chart(
Y( Column( ListofColumnNames ) ), // I know this syntax does not work, but conveys the intent.
Model( "Main Effect" ),
X( :unit )
);
I know that this can be accomplished using a For Loop
Y( Column(ListofColumnNames[i])),
but wondered if there was a way to avoid the For Loop and invoke the Variability Chart only one time by passing the entire list (for speed).