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
- :
- how to output random table from prediction profiler in fit model

- 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
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 28, 2017 6:51 AM
(4012 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 );

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- 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

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- 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

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- 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" ?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- 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

Article Labels

There are no labels assigned to this post.