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
ACraig
Level II

Can you use JSL script to run the Means/ANOVA and Student's t within Fit Y by X

I am building a workflow and while recording I do the Fit Y by X and then do the Means/ANOVA and Means Comparisons -> Student's t. When I stop recording it only does the JSL script for the Fit X by Y:

Data Table( "My Table" )
 << Oneway(
	Y( :Percent Change ),
	X( :Estimate ),
	Means( 1 ),
	Mean Diamonds( 1 ),
	Each Pair( 1 ),
	SendToReport(
		Dispatch( {}, "Oneway Plot", FrameBox, {Frame Size( 474, 336 )} )
	)
)

Does anyone know how to add the code in to have the Means/ANOVA and Student's t run auotmatically?

3 REPLIES 3
jthi
Super User

Re: Can you use JSL script to run the Means/ANOVA and Student's t within Fit Y by X

Doesn't that script include all of those (Means(1) and Each Pair(1))?

-Jarmo
ACraig
Level II

Re: Can you use JSL script to run the Means/ANOVA and Student's t within Fit Y by X

I don't quite understand what you mean. 

jthi
Super User

Re: Can you use JSL script to run the Means/ANOVA and Student's t within Fit Y by X

I assume when you are recording the workflow, you will also select correct things from fit y by x platform? So you select Means

jthi_2-1724073370340.png

and means comparison

jthi_3-1724073383893.png

So you get report like this

jthi_0-1724073306330.png

when you close the report it should be recorded

jthi_1-1724073342952.png

Other option is to Save Script to Workflow (this way you don't have to close the report window)

jthi_4-1724073420401.png

 

 

-Jarmo

Recommended Articles