Subscribe Bookmark RSS Feed

Using Simulate [JMP Pro] in a Script

shoffmeister

Community Trekker

Joined:

Mar 27, 2015

I would like to use the simulation-feature of JMP Pro to make a power analysis for multiple different scenarios. Is there a way to start the simulation via script, as it would be a lot of work to go through the process manually. 

 

Thanks in advance,

Sebastian

 

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp

Staff

Joined:

Jun 23, 2011

Solution

This shows the basic idea (building on one of the examples in the documentation for a permutation test):

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Analgesics.jmp" );
dt << 	New Column( "pain shuffled",
							Numeric,
							"Continuous",
							Format( "Fixed Dec", 4, 2 ),
							Formula( Col Stored Value( :pain, Col Shuffle() ) )
						);
ow = dt << Oneway( Y( :pain ), X( :drug ), Means( 1 ), Mean Diamonds( 1 ) );
Report(ow)[TableBox(2)] << simulate(1000, 999, Out(:pain), In(:pain shuffled));
2 REPLIES
ian_jmp

Staff

Joined:

Jun 23, 2011

Solution

This shows the basic idea (building on one of the examples in the documentation for a permutation test):

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Analgesics.jmp" );
dt << 	New Column( "pain shuffled",
							Numeric,
							"Continuous",
							Format( "Fixed Dec", 4, 2 ),
							Formula( Col Stored Value( :pain, Col Shuffle() ) )
						);
ow = dt << Oneway( Y( :pain ), X( :drug ), Means( 1 ), Mean Diamonds( 1 ) );
Report(ow)[TableBox(2)] << simulate(1000, 999, Out(:pain), In(:pain shuffled));
shoffmeister

Community Trekker

Joined:

Mar 27, 2015

Thanks a lot Ian!