cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Runs Test (Wald-Wolfowitz Test) and JSL Implementation of JMP Platform Dialog Box
txnelson
Super User

An implementation of the Wald-Wolfowitz Test, more commonly called a Runs Test.  This is a translation from a SAS Sample 33092 from http://www.sas.com website. It's output is a Run Chart (Control Chart) and a Results Table that contains the particulars from the Runs Test.

10683_Run Test.jpg

Also contained in the JMP Addin is a JSL implementation of an approximation of the user input dialog box used by most of the JMP Platforms.

10685_Dialog Box.jpg

It is a piece of JSL that can easily be stripped out and implemented in user's code

Comments
recremekim

This doesn't appear to work if you select the median.11759_JMP Runs Test for Median.jpg

50 data points used

2.86183

7.68534

6.69476

5.69521

1.64778

2.48436

2.46675

3.75411

1.35445

2.71276

3.47636

1.08042

1.19898

3.26590

0.25385

0.32216

1.45118

4.87050

6.26643

4.74128

4.13786

1.24669

4.53740

2.68636

2.32268

1.02866

2.12435

5.85016

3.48550

0.25086

2.36367

4.42492

3.81540

0.48526

2.69943

8.78881

2.20214

0.19546

4.28811

1.19588

5.15606

0.74346

0.59323

2.58602

4.29810

1.95153

1.06895

3.11554

0.83567

1.33004

txnelson

I have fixed the bug....thanks for finding it.  I will be uploading it shortly

recremekim

Works fine now. Data is Chi-sq. with 3 deg. of freedom.  Thanks

11761_pastedImage_0.png

Would it be possible to add tests for trends, mixtures, length of runs, etc.?

Jim, a professor using 10.2 would like to use this add-in, but it won't load for him.  Is there a version of this add-in (or the script) that will run in 10.2?

Thanks!

Mia

Hi Jim,

The professor was able to open the add-in in edit mode in JMP 10.2, make some modifications, and save it.  It now works for him in 10.2.

Thanks!

Mia

txnelson

Mia,

I am glad the professor got the addin to work.

Jim

flvs

JMP 18.0.2

The Control Chart platform has changed and you now get a warning when using the Run Test Add-In in JMP 18. I have taken the liberty to modify the Add-in and exchanged the Legacy Control Chart platform to Control Chart Builder, the rest being the same. I have closed the Control Panel and removed the Limits section. 

This is the new section for generation of the Run Chart using the Control Chart Builder. I hope it follows the JLS convention.

		// Generate the Run Chart
		ob = Outline Box( "",
			V List Box(
				If( dlgbox["gen charts"] == 1, 
					// Generate the code for the Runs Chart
					CCR = dt << Control Chart Builder(
						Show Two Shewhart Charts( 0 ),
						Variables(
							Y( Eval( dlgbox["The Column List"][i] ) )
						),
						Show Control Panel( 0 ),
						Dispatch( {}, Char( dlgbox["The Column List"][i] ) || " Limit Summaries", OutlineBox, { Delete } ),
						Chart(
							Limits( Show Lower Limit( 0 ), Show Upper Limit( 0 ) )
						)
					);
					Report( CCR )[Outline Box( 1 )] << append( ob2 );
					Report( CCR )[Outline Box( 1 )] << set title( Char( dlgbox["The Column List"][i] ) );
					If( dlgbox["The Radio Box"] == 3,
						Report( CCR )[Axis Box( 1 )] << Add Ref Line( Eval( Parse( Char( Compare Value ) ) ), Solid, Green, "", 2 );
						Report( CCR )[Frame Box( 1 )] << Add Graphics Script(
							Text Color( "black" );
							Text( {0, Eval( Parse( Char( Compare Value ) ) )}, "Comp. Value=" || Char( Compare Value ) );
						);
					);
				)
			)
		);
		

Maybe someone can update the Add-In it self to a new version. 

Flemming

Recommended Articles