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
- :
- In JSL, how to use a column name using a dynamic v...

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

Nov 5, 2012 3:49 PM
(838 views)

For example, I have a table dt with n columns, X1, X2, ..., Xn. I need to draw distributions for EACH column, X(i), like below (repeat n times):

Distribution(

Continuous Distribution(

Column( :X1),

Horizontal Layout( 1 ),

Vertical( 0 ),

Normal Quantile Plot( 1 ),

Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )

)

);

How can I use a loop to do this? I tried the following, but it is not successful :-(.

ColNameList = dt << Get Column Names(Nominal, String);

for (k=1, k<=n, k++,

Distribution(

Continuous Distribution(

Column( :ColNameList

Horizontal Layout( 1 ),

Vertical( 0 ),

Normal Quantile Plot( 1 ),

Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )

)

)

);

Any good suggestion?

Thanks.

John

1 REPLY

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

Nov 6, 2012 3:12 AM
(542 views)

I am not sure why you specify Nominal in <<get column names(). I would think that numeric and continuous variables are required In this context.

This should work:

dt = Current Data Table**()**;

ColNameList = dt << Get Column Names**(** continuous **)**; //Capability do not work well with nominal columns

For**(** k = **1**, k <= N Items**(** ColNameList **)**, k++,

Distribution**(**

Continuous Distribution**(**

Column**(** ColNameList**[**k**]** **)**,

Horizontal Layout**(** **1** **)**,

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

Normal Quantile Plot**(** **1** **)**,

Capability Analysis**(** LSL**(** **4** **)**, USL**(** **22** **)**, Target**(** **13** **)** **)**

**)**

**)**

**)**;