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
- :
- Nominal factor in Prediction Profiler

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

Aug 22, 2016 2:09 AM
(1090 views)

Dear community,

I am trying to use the prediction profiler with one of the factors having the nominal data type. In the example below, the Factor 1 can assume two values, “One” and “Two”. The formula to be profiled contains a ‘Match’ statement that selects the numerical value 1 or 2, according to which string (“One” or “Two”) is entered, see the example code:

dt = New Table("Simulate",

Add Rows( 1 ),

New Column("Factor 1",

Character,

"Nominal",

Set Values({"One"})

),

New Column("Factor 2",

Numeric,

"Continuous",

Format("Best", 12),

Set Values([3])

),

New Column("Response",

Numeric,

"Continuous",

Format("Best", 12),

Formula(Match( :Factor 1, "One", 1, "Two", 2 ) * :Factor 2)

)

);

Profiler(

Y(:Response),

Simulator(

Factors(

Factor 2 << Random( Normal( 3, 0.1 ) )

)

)

)

When I run this code, a profiler report opens, like the one shown.

Now, here is my question: How do I get the dropdown menu below the graph for Factor 1 to show both options “One” and “Two”? The profiler and the simulation result should then change, according to which string value is chosen for Factor 1.

Any help is much appreciated.

6 REPLIES

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

Aug 22, 2016 3:22 AM
(1001 views)

Try adding another row to your table:

dt = New Table**(**"Simulate",

Add Rows**(** **1** **)**,

New Column**(**"Factor 1",

Character,

"Nominal",

Set Values**({**"One", "Two"**})**

**)**,

New Column**(**"Factor 2",

Numeric,

"Continuous",

Format**(**"Best", **12****)**,

Set Values**([****3**, **3****])**

**)**,

New Column**(**"Response",

Numeric,

"Continuous",

Format**(**"Best", **12****)**,

Formula**(**Match**(** :Factor 1, "One", **1**, "Two", **2** **)** * :Factor 2**)**

**)**

**)**;

Profiler**(**

Y**(**:Response**)**,

Simulator**(**

Factors**(**

Factor 2 << **Random****(** Normal**(** **3**, **0.1** **)** **)**

**)**

**)**

**);**

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

Aug 22, 2016 4:22 AM
(1001 views)

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

Aug 22, 2016 4:35 AM
(1001 views)

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

Aug 22, 2016 4:47 AM
(1001 views)

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

Aug 22, 2016 2:51 PM
(1001 views)

Looks like you've found a bug with respect to the factor setting in the graph and drop down not always moving together. I've reported that and we'll see if we can get it addressed in a future release.

-Jeff

-Jeff

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

Aug 23, 2016 1:44 AM
(1001 views)

When I define a factor as random and use a non-normal distribution there seems to be no link at all.