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
- :
- Make combined data table from two fit models

Topic Options

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

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

Feb 16, 2018 12:53 PM
(1502 views)

Is it possible to make combined data table from a fit group having more than 2 fit models in jsl? I have multiple fit models and I want to extract the same data from each of these models, say for example I want to make a combined data table for the 'Analysis of Variance' of each fit model but I want the data from all 3 models in 1 final jmp table. Thank you for any help.

2 ACCEPTED SOLUTIONS

Accepted Solutions

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

Here is a simple script that works across multiple models........am I missing anything?

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );
ft = Fit Group(
Oneway( Y( :NPN1 ), X( :wafer ), Means( 1 ), Mean Diamonds( 1 ) ),
Oneway( Y( :PNP1 ), X( :wafer ), Means( 1 ), Mean Diamonds( 1 ) ),
<<{Arrange in Rows( 1 )}
);
dta = Report( ft )["Summary of Fit"][Table Box( 1 )] << make combined data table;
dtb = Report( ft )["Analysis of Variance"][Table Box( 1 )] << make combined data table;
vals = dta:Y << get values;
Show( vals );
```

Jim

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

Yes, that was exactly what I was looking for.. Thanks a lot.

5 REPLIES 5

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

Re: Make combined data table from two fit models

Did you try Right Clicking on the table you want to output, and choosing "Make Combined Data Table", and did it do what you want.........many times JMP will combine such tables, even if coming from different outputs. But from your description, I cannot give you a definative statement

Jim

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

Re: Make combined data table from two fit models

JMP does what I want, but I want to write a script which would do that since I want to only get certain columns as an output and not the entire table that I get after using the make combined data table method in JMP.

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

Re: Make combined data table from two fit models

For eg:

fmr=fm<<report;

a=fmr["Scaled Estimates"][TableBox(1)]<<Make combined data table;

b=fmr["Summary of Fit"][TableBox(1)]<<Make combined data table;

c=fmr["Analysis of Variance"][TableBox(1)]<<Make combined data table;

row1=nrows(a);

row2=nrows(b);

row3=nrows(c);

vals=Column(a,"Y")[1::row1];

I want to be able to be able to do this to an entire Fit Group of multiple fit models.

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

Here is a simple script that works across multiple models........am I missing anything?

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );
ft = Fit Group(
Oneway( Y( :NPN1 ), X( :wafer ), Means( 1 ), Mean Diamonds( 1 ) ),
Oneway( Y( :PNP1 ), X( :wafer ), Means( 1 ), Mean Diamonds( 1 ) ),
<<{Arrange in Rows( 1 )}
);
dta = Report( ft )["Summary of Fit"][Table Box( 1 )] << make combined data table;
dtb = Report( ft )["Analysis of Variance"][Table Box( 1 )] << make combined data table;
vals = dta:Y << get values;
Show( vals );
```

Jim

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

Yes, that was exactly what I was looking for.. Thanks a lot.