Subscribe Bookmark RSS Feed

How can I extract change point value of multivariate control chart by JSL?

albert419870

Community Trekker

Joined:

Dec 24, 2015

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
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
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);


albert419870

Community Trekker

Joined:

Dec 24, 2015

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.

ian_jmp

Staff

Joined:

Jun 23, 2011

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'.