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

How to 'Save Best Transformation' in "Box-Cox Transformations" using JSL.

I need to save best transformation in the table using JSL. How can I achieve that? 

BOX COX.png

 

Names Default To Here( 1 );
dt = Current Data Table();

// 1. Column Selection
dlg = Column Dialog( colList = Col List( "Select Test Column", Max Col( 1 ) ) );
If( dlg["Button"] == -1, Throw( "User cancelled" ) );

selectedColList = dlg["colList"]; 
col = Column( dt, selectedColList );

// 2. Run Fit Model to access Box-Cox
fm = dt << Fit Model(
	Y( col ),
	Effects,
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run
);

// 3. Trigger Box-Cox and SAVE the transformed column

fm_rep = Report( fm );

// Activate the Box-Cox transformation display
fm << Box Cox Y Transformation( 1 );

// Send the Save command to the specific Box-Cox Transformations outline box
fm_rep["Box-Cox Transformations"] << Save Best Transformation;

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to 'Save Best Transformation' in "Box-Cox Transformations" using JSL.

Have you checked Scripting Index?

image.png

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to 'Save Best Transformation' in "Box-Cox Transformations" using JSL.

Have you checked Scripting Index?

image.png

-Jarmo

Recommended Articles