cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
PValueEnemy
Level II

Add Prediction Profiler to JMP journal

Hello!

I have a Predictor Profiler obtained as the results of a Custom DoE and I would like to add it to a journal and keep it interactive, like in the Fit Least Squares resulting window. Is that possible?

2 ACCEPTED SOLUTIONS

Accepted Solutions
StarfruitBob
Level VI

Re: Add Prediction Profiler to JMP journal

Hello @PValueEnemy,

After playing with the journal and a test dataset for a while, I do not believe this is possible - the profiler, and everything added to a journal will be static.  Upon looking at the documentation for the journal feature, Discovering JMP, Ch 7 Save and Share Your Work, pages 200 - 201, it states that entries into a journal are not connected to a data table. This means is why the interactivity is taken away.

 

Have you considered interactive HTML as a solution?

Learning every day!

View solution in original post

txnelson
Super User

Re: Add Prediction Profiler to JMP journal

Here is a simple example of a "Live" Prediction Profiler in a Journal.  I hope this is what you are looking for.

txnelson_0-1679680747798.png

 

Names Default To Here( 1 );
dt = 
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
fm = Fit Model(
	Y( :NPN1 ),
	Effects( :PNP1, :NPN2 ),
	Personality( "Generalized Regression" ),
	Generalized Distribution( "Normal" ),
	Run(
		Fit( Estimation Method( Standard Least Squares ), Validation Method( None ), save prediction formula ),
		Fit( Estimation Method( Lasso ), Validation Method( AICc ) )
	)
);

fm << close window;

New Window( "The Journal",
	<<journal,
	Outline Box( "Profiler in a Journal", 

		Profiler(
			Y( :NPN1 Prediction Formula ),
			Profiler(
				1,
				Term Value( PNP1( 297.02, Lock( 0 ), Show( 1 ) ), NPN2( 113.75, Lock( 0 ), Show( 1 ) ) )
			),
			Custom Profiler(
				1,
				Term Value( PNP1( 297.02, Lock( 0 ), Show( 1 ) ), NPN2( 114.039, Lock( 0 ), Show( 1 ) ) ),
				Objective Formula( :NPN1 Prediction Formula )
			)
		)
	)

);
Jim

View solution in original post

3 REPLIES 3
StarfruitBob
Level VI

Re: Add Prediction Profiler to JMP journal

Hello @PValueEnemy,

After playing with the journal and a test dataset for a while, I do not believe this is possible - the profiler, and everything added to a journal will be static.  Upon looking at the documentation for the journal feature, Discovering JMP, Ch 7 Save and Share Your Work, pages 200 - 201, it states that entries into a journal are not connected to a data table. This means is why the interactivity is taken away.

 

Have you considered interactive HTML as a solution?

Learning every day!
txnelson
Super User

Re: Add Prediction Profiler to JMP journal

Here is a simple example of a "Live" Prediction Profiler in a Journal.  I hope this is what you are looking for.

txnelson_0-1679680747798.png

 

Names Default To Here( 1 );
dt = 
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
fm = Fit Model(
	Y( :NPN1 ),
	Effects( :PNP1, :NPN2 ),
	Personality( "Generalized Regression" ),
	Generalized Distribution( "Normal" ),
	Run(
		Fit( Estimation Method( Standard Least Squares ), Validation Method( None ), save prediction formula ),
		Fit( Estimation Method( Lasso ), Validation Method( AICc ) )
	)
);

fm << close window;

New Window( "The Journal",
	<<journal,
	Outline Box( "Profiler in a Journal", 

		Profiler(
			Y( :NPN1 Prediction Formula ),
			Profiler(
				1,
				Term Value( PNP1( 297.02, Lock( 0 ), Show( 1 ) ), NPN2( 113.75, Lock( 0 ), Show( 1 ) ) )
			),
			Custom Profiler(
				1,
				Term Value( PNP1( 297.02, Lock( 0 ), Show( 1 ) ), NPN2( 114.039, Lock( 0 ), Show( 1 ) ) ),
				Objective Formula( :NPN1 Prediction Formula )
			)
		)
	)

);
Jim
StarfruitBob
Level VI

Re: Add Prediction Profiler to JMP journal

Notes on this:

  • JMP Pro required to test, but you can easily swap out the Fit Model() to one of your choice; you mention Least Squares.
  • This will require the data table to be active in the background.
    • If you close out the data table, the journal will close.
    • If you save the journal, close the table and journal, then open the journal by itself, it's a static profiler.

If you don't mind the source data table being opened, there's no difference in opening up the profiler from the Graph > Profiler menu and saving the produced profiler as a table script.

Learning every day!