cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
powerpuff
Level IV

Make combined data table from two fit models

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
txnelson
Super User

Re: Make combined data table from two fit models

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

View solution in original post

powerpuff
Level IV

Re: Make combined data table from two fit models

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

View solution in original post

5 REPLIES 5
txnelson
Super User

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
powerpuff
Level IV

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.

powerpuff
Level IV

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.

txnelson
Super User

Re: Make combined data table from two fit models

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
powerpuff
Level IV

Re: Make combined data table from two fit models

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