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

- JMP User Community
- :
- Discussions
- :
- Capture DoE Design Evaluation Efficiency Output in JSL

- 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 9, 2019 1:25 PM
(2301 views)

Hi!

I am trying to capture the design efficiencies from the 'Design Diagnostics' Outline Box in the Custom Design platform. I have managed to obtain the 'D Efficiency' output, but I can't seem to correctly alter the indexing to obtain the others. I've looked closely at the associated Property Tree, but the numeric references don't seem to be what I need to use - as I get error when replacing the 1's below with any other number.

Here is a code example to generate a DoE and capture the D Efficiency number:

```
test=DOE(
Custom Design,
Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ),
Set Random Seed( 54 ),
Add Constraint( [1 1 0 1, 1 0 1 1] ),
Add Term( {1, 0} ),
Set Sample Size( 8 ),
Simulate Responses( 1 ),
Save X Matrix( 1 ),
Make Design,
//Make Table,
);
test2=report(test);
test2[Outline box("Design Evaluation")][Outline Box("Design Diagnostics")][List Box(1)][LineUpBox(1)][ListBox(1)][NumberColBox(1)]<< Get(1);
```

How do I alter the above to print-out the other efficiency numbers? Also, is there any easier way to capture these numbers within JSL?

Any help would be appreciated!

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

That outline is complicated. I think you have to get individual efficiencies. Like this:

```
Names Default To Here( 1 );
test = DOE(
Custom Design,
Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ),
Set Random Seed( 54 ),
Add Constraint( [1 1 0 1, 1 0 1 1] ),
Add Term( {1, 0} ),
Set Sample Size( 8 ),
Simulate Responses( 1 ),
Save X Matrix( 1 ),
Make Design,
//Make Table,
);
test2 = Report( test );
test2["Design Evaluation"] << Close( 0 );
test2["Design Diagnostics"] << Close( 0 );
d eff = test2["Design Diagnostics"][NumberColBox( 1 )] << Get( 1 );
g eff = test2["Design Diagnostics"][NumberColBox( 2 )] << Get( 1 );
e eff = test2["Design Diagnostics"][NumberColBox( 3 )] << Get( 1 );
```

I am not sure how you want to use them. Do you want to collect them in a data table? Do you want to present them in a new window?

Learn it once, use it forever!

4 REPLIES 4

Highlighted

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

That outline is complicated. I think you have to get individual efficiencies. Like this:

```
Names Default To Here( 1 );
test = DOE(
Custom Design,
Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ),
Set Random Seed( 54 ),
Add Constraint( [1 1 0 1, 1 0 1 1] ),
Add Term( {1, 0} ),
Set Sample Size( 8 ),
Simulate Responses( 1 ),
Save X Matrix( 1 ),
Make Design,
//Make Table,
);
test2 = Report( test );
test2["Design Evaluation"] << Close( 0 );
test2["Design Diagnostics"] << Close( 0 );
d eff = test2["Design Diagnostics"][NumberColBox( 1 )] << Get( 1 );
g eff = test2["Design Diagnostics"][NumberColBox( 2 )] << Get( 1 );
e eff = test2["Design Diagnostics"][NumberColBox( 3 )] << Get( 1 );
```

I am not sure how you want to use them. Do you want to collect them in a data table? Do you want to present them in a new window?

Learn it once, use it forever!

Highlighted
##

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

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Thanks so much!

Yes, I want to collect them into columns in a data table. In particular, I'd like to loop over the design generation - changing the seed and No. of runs - and capture the various outputs.

Highlighted
##

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

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Do you need more help or do you know how to iterate over the changes and how to collect the efficiencies into a data table?

Learn it once, use it forever!

Highlighted
##

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

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Oh, I have that part - I just couldn't figure out how to reference the right boxes in that report. I kept getting errors when trying to change the indices ( or subscripts? ).

Thanks again!

Thanks again!

Article Labels

There are no labels assigned to this post.