cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

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