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
- :
- DOE All Possible Combinations

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

Apr 15, 2016 2:49 PM
(1294 views)

Hello all,

I have a relatively problem that I can't seem to crack within the DOE platform. I've done it before, but now I can't recall how precisely.

I am collecting two measurements (Valence and Intensity) across 4 samples. I want to control for the order the samples are presented. I want to create a table with all possible order of samples (preferably 2 sets, so each combination appears twice).

I have set Sample as a catagorical, 4 level factor.

I have tried time as both catagorical and continuous, without luck.

What am I missing?

4 REPLIES

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

Apr 17, 2016 8:09 AM
(1159 views)

If I am interpreting what you are asking for, you need a Full Factorial Design with 2 Responses, and 4 Factors, each with 4 levels, and 1 Replicate.

It produces a table with a randomized order of all possible combinations times 2.

Jim

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

Apr 17, 2016 8:27 AM
(1159 views)

Hi Jim!

Thank you for your response. That is pretty close! One thing I failed to specify was that I only need each factor to appear once in each pattern.

For Example

1234

1243

1342

1324

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

Apr 18, 2016 5:51 AM
(1159 views)

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

Apr 18, 2016 7:26 AM
(1159 views)

If all you are looking for is a test order generator, and not a complete DOE solution, the little "brute force" script I put together will give you random test orders for all of the combinations you are looking for:

dt = New Table**(** "Order", New Column**(** "Group" **)**, New Column**(** "Order", character **)**, New Column**(** "Random" **)** **)**;

For**(** a = **1**, a <= **4**, a++,

For**(** b = **1**, b <= **4**, b++,

For**(** c = **1**, c <= **4**, c++,

For**(** d = **1**, d <= **4**, d++,

Pattern = Char**(** a **)** || Char**(** b **)** || Char**(** c **)** || Char**(** d **)**;

If**(**

Sum**(**

Contains**(** pattern, "1" **)** > **0**,

Contains**(** pattern, "2" **)** > **0**,

Contains**(** pattern, "3" **)** > **0**,

Contains**(** pattern, "4" **)** > **0**

**)** == **4**,

dt << **add rows(** **2** **)**;

dt:Group**[**N Rows**(** dt **)** - **1]** = **1**;

dt:Group**[**N Rows**(** dt **)]** = **2**;

dt:Order**[**N Rows**(** dt **)** - **1]** = pattern;

dt:Order**[**N Rows**(** dt **)]** = pattern;

dt:Random**[**N Rows**(** dt **)** - **1]** = Random Uniform**()**;

dt:Random**[**N Rows**(** dt **)]** = Random Uniform**()**;

**)**;

**)**

**)**

**)**

**)**;

dt << **Sort(**

By**(** :Group, :Random **)**,

Order**(** Ascending, Ascending **)**,

Replace table**(** **1** **)**

**)**;

dt << **delete Columns(**"Random"**)**;

Jim