Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- how to output random table from prediction profiler in fit model

Topic Options

- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 28, 2017 6:51 AM
(1958 views)

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 );

Solved Go to Solution

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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" ?

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" ?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

I am not aware of anyway to do that.

Jim