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
- :
- JSL for Conditional Distribution (Or other platfor...

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

Mar 29, 2014 4:06 PM
(1956 views)

Hi

I'm looking for a way that I can script a distribution, but the number of Y's I would want to analyze at once is dependent on user input. Sometimes it's only one column, and other times it might be 5. This is a part of a bigger script which is why i'm attempting to program it.

Ideally I would like something like this..... but the number of "Continuous Distribution" blocks is variable depending on user input.

Distribution**(**

Continuous Distribution**(**

column**(****12****)**,

Quantiles**(** **0** **)**,

Vertical**(** **0** **)**,

Outlier Box Plot**(** **0** **)**,

Customize Summary Statistics**(** Minimum**(** **1** **)**, Maximum**(** **1** **)** **)**

**)**,

Continuous Distribution**(**

column**(****13****)**,

Quantiles**(** **0** **)**,

Vertical**(** **0** **)**,

Outlier Box Plot**(** **0** **)**,

Customize Summary Statistics**(** Minimum**(** **1** **)**, Maximum**(** **1** **)** **)**

**)**,

**)**;

I tried saving it to an Expr() and evaluating it, but that didn't work out.

Any help is appreciated

1 ACCEPTED SOLUTION

Accepted Solutions

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

Mar 29, 2014 5:05 PM
(3512 views)

Solution

Distribution() accepts a list of columns as argument. The example below uses a column dialog to get user input. But any list of columns would work.

Open**(** "$SAMPLE_DATA/Big Class.jmp" **)**;

coldlg = Column Dialog**(** cols = ColList**(** "Variables", DataType**(** Numeric **)** **)** **)**;

dist = Distribution**(**

Column**(** coldlg**[**"cols"**]** **)**,// Exctract list of columns from coldlg

Quantiles**(** **0** **)**,

Vertical**(** **0** **)**,

Outlier Box Plot**(** **0** **)**,

Customize Summary Statistics**(** Minimum**(** **1** **)**, Maximum**(** **1** **)** **)**

**)**;

2 REPLIES

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

Mar 29, 2014 5:05 PM
(3513 views)

Distribution() accepts a list of columns as argument. The example below uses a column dialog to get user input. But any list of columns would work.

Open**(** "$SAMPLE_DATA/Big Class.jmp" **)**;

coldlg = Column Dialog**(** cols = ColList**(** "Variables", DataType**(** Numeric **)** **)** **)**;

dist = Distribution**(**

Column**(** coldlg**[**"cols"**]** **)**,// Exctract list of columns from coldlg

Quantiles**(** **0** **)**,

Vertical**(** **0** **)**,

Outlier Box Plot**(** **0** **)**,

Customize Summary Statistics**(** Minimum**(** **1** **)**, Maximum**(** **1** **)** **)**

**)**;

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

Mar 29, 2014 6:53 PM
(1756 views)