cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • See how to interactively organize and restructure data for analysis. Register for May 29 webinar, 2pm US ET.

Discussions

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

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 I

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