cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Pro extension simulates Bayesian Optimization runs. Prediction formulas stand in for experimental results. Run simulations and compare results. Download and use the extension.

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