cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

JMP script for a user select Y, response columns for Fit Y by X

Hi, 

 

I'm trying to write a script that user can select columns for 'Y, response', 'X, Factor', and 'By' for Fit Y by X or Bivariate.

 

I figured out that I can use 'Column Dialog' function to select Y, X, and By using below script. But, I could not write a script to plot Fit Y by X with selected columns. It would be really appreciated if anyone can help to make a full script.

 

Thanks in advance.

 

 

Regards,

Hyungwoo


colDlg = Column Dialog(
Title( "Column Selection" ),
ycol = Col List( "Y, Response", Min Col( 1 ) ),
xcol = Col List( "X, Factor", Min Col( 1 ) ),
bycol = Col List ( "By", Min Col(1))
);

 

 

 

 

 

1 REPLY 1
jthi
Super User

Re: JMP script for a user select Y, response columns for Fit Y by X

This should get you forward:

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Consumer Preferences.jmp");
colDlg = Column Dialog(
	Title( "Column Selection" ),
	ycol = Col List( "Y, Response", Min Col( 1 ) ),
	xcol = Col List( "X, Factor", Min Col( 1 ) ),
	bycol = Col List ( "By", Min Col(1))
);

Show(colDlg);

biv = dt << Bivariate(Y(colDlg["ycol"]), X(colDlg["xcol"]), By(colDlg["bycol"]));
-Jarmo

Recommended Articles