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
- :
- Discussions
- :
- How can I extract change point value of multivaria...

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

Dec 24, 2015 9:14 AM
(2265 views)

Hi all:

Recently I'm studying statistical process control theory.

And I found there's "multivariate control chart" function in JMP, which also be able to conduct change point analysis (CPA) inside.

(Additional Examples of Multivariate Control Charts)

However, I'm curious about how to write JSL to extract value of "change point", which is always shown as text of "The change point appears at row N".

From "copy script" option, only "(1) Change Point Analysis" is related to CPA and it's just to enable function, not to extract value.

This question bothered me for a while and thanks all for reading!

1 ACCEPTED SOLUTION

Accepted Solutions

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

Dec 24, 2015 1:05 PM
(4114 views)

Solution

You can always dig it out of the report:

dt = Open**(**"$SAMPLE_DATA/Quality Control/Gravel.jmp"**)**;

mvc = dt << **RunScript****(**"Multivariate Control Chart"**)**;

cpText = Report**(**mvc**)[**TextBox**(****8****)]** << **getText**;

cpTextWords = Words**(**cpText**)**;

rn = Num**(**Substr**(**cpTextWords**[****7****]**, **1**, Length**(**cpTextWords**[****7****])**-**1****))**;

Print**(**rn**)**;

3 REPLIES

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

Dec 24, 2015 1:05 PM
(4115 views)

You can always dig it out of the report:

dt = Open**(**"$SAMPLE_DATA/Quality Control/Gravel.jmp"**)**;

mvc = dt << **RunScript****(**"Multivariate Control Chart"**)**;

cpText = Report**(**mvc**)[**TextBox**(****8****)]** << **getText**;

cpTextWords = Words**(**cpText**)**;

rn = Num**(**Substr**(**cpTextWords**[****7****]**, **1**, Length**(**cpTextWords**[****7****])**-**1****))**;

Print**(**rn**)**;

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

Dec 25, 2015 5:28 AM
(2057 views)

Hi Ian:

It's amazing! I've tried it today and found change point could be recorded as a variable.

But could I ask one more question?

Currently I've written some SAS codes in enterprise guide (SAS ver: 9.3), and is there any fast way to read JMP variable from SAS?

So far I think I can call JMP script to execute from SAS, then put rn in a JMP / SAS table. And finally use SAS to import the table to get the value.

However I thought it contains too much procedures...so I'm searching if other better way for it.

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

Jan 4, 2016 12:54 AM
(2057 views)

I see there's a related thread at: https://community.jmp.com/thread/65698.Did that help you, please?

There are a number of ways in which JMP and SAS can interoperate, and Chapter 14 in 'Help > Books > Scripting Guide' will get you started. Also look at 'Help > Books > JSL Syntax Reference'.