Choose Language Hide Translation Bar
Highlighted
WHTseng
Level III

how to output random table from prediction profiler in fit model

Hi JMPers,

 

I used the standard least squares of fit model, and tried to output a random data table based on the prediction profilers.

It is easy to right click manually the red triangle of Prediction Profilers, and select "Output random table".

But how to make this small action into script?

Here is what I tried but failed. Thank you for any reply in advanced.

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = Fit Model(
Y( :ABRASION, :HARDNESS ),
Effects( :SILICA, :SILANE, :SULFUR ),
Personality( Standard Least Squares ),
Emphasis( Minimal Report ),
Run

);
obj << Profiler( 1 );

obj << Output Random Table( 1000 );

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: how to output random table from prediction profiler in fit model

Here is a method that does what you want:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = Fit Model(
	Y( :ABRASION, :HARDNESS ),
	Effects( :SILICA, :SILANE, :SULFUR ),
	Personality( Standard Least Squares ),
	Emphasis( Minimal Report ),
	Run
);
obj << prediction formula;
newobj = dt << Profiler(
	Y(
		:Name("Pred Formula ABRASION 2"),
		:Name("Pred Formula HARDNESS 2")
	)
);
newobj << Output Random Table( 1000 );
Jim

View solution in original post

3 REPLIES 3
Highlighted
txnelson
Super User

Re: how to output random table from prediction profiler in fit model

Here is a method that does what you want:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = Fit Model(
	Y( :ABRASION, :HARDNESS ),
	Effects( :SILICA, :SILANE, :SULFUR ),
	Personality( Standard Least Squares ),
	Emphasis( Minimal Report ),
	Run
);
obj << prediction formula;
newobj = dt << Profiler(
	Y(
		:Name("Pred Formula ABRASION 2"),
		:Name("Pred Formula HARDNESS 2")
	)
);
newobj << Output Random Table( 1000 );
Jim

View solution in original post

Highlighted
WHTseng
Level III

Re: how to output random table from prediction profiler in fit model

Thank you Jim.
I think the key point is " << prediction formula;".

Just out of curiosity, is there a way to generate random table directly from fit model instead of using "<<Prediction formula" ?
Highlighted
txnelson
Super User

Re: how to output random table from prediction profiler in fit model

I am not aware of anyway to do that.

Jim
Article Labels

    There are no labels assigned to this post.