cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

String column names as argument for Variability Plot

Hello all,

i have list of column names as string. I want to input it as argument for Variability Plot.

 

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
yCol = {"NPN1", "NPN2"};
xCol = {"wafer", "lot_id"};
// I want to Plot for all x columns
obj << Variability Chart( Y( yCol[1] ), Model( "Main Effect" ), X( xcols ) );

 

I tried "As Column", Parse(":"||xCol[i]) nothing works ... Kindly guide... Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: String column names as argument for Variability Plot

There was a syntax error, xcols was specified instead of xcon.

Adding in the Column() function and Eval() function for the xcol list fixed the JSL

Try this:

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
yCol = {"NPN1", "NPN2"};
xCol = {"wafer", "lot_id"};
// I want to Plot for all x columns
obj = dt << Variability Chart( Y( column(yCol[1]) ), Model( "Main Effect" ), X( eval(xcol) ) );

Also, please use the JSL icon for entering any JSL that is specified in your question and/or response.

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: String column names as argument for Variability Plot

There was a syntax error, xcols was specified instead of xcon.

Adding in the Column() function and Eval() function for the xcol list fixed the JSL

Try this:

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
yCol = {"NPN1", "NPN2"};
xCol = {"wafer", "lot_id"};
// I want to Plot for all x columns
obj = dt << Variability Chart( Y( column(yCol[1]) ), Model( "Main Effect" ), X( eval(xcol) ) );

Also, please use the JSL icon for entering any JSL that is specified in your question and/or response.

Jim

Recommended Articles