Multivariate Control Chart
Example 1
Summary: Creates a multivariate control chart to monitor and analyze multiple quality characteristics in a data table, utilizing subgrouping for enhanced visualization.
Code:
// Save T Square
// Open data table
dt = Open("data_table.jmp");
// Save T Square
dt = Current Data Table();
MyTchart =
Multivariate Control Chart(
Y(
:Diameter1, :Diameter2,
:Diameter3, :Diameter4, :Length1,
:Length2
),
Subgroup( :subgroup )
);
MyTchart << Save T Square;
Code Explanation:
- Open data table.
- Set current data table.
- Create multivariate control chart.
- Specify response variables.
- Define subgroup variable.
- Save T Square.
Example 2
Summary: Creates a multivariate control chart to monitor the quality of diameter and length measurements, using subgrouping and specifying an alpha level.
Code:
// Multivariate Control Chart
// Open data table
dt = Open("data_table.jmp");
// Multivariate Control Chart
Multivariate Control Chart(
Y(
:Diameter1, :Diameter2,
:Diameter3, :Diameter4, :Length1,
:Length2
),
Subgroup( :subgroup ),
Set Alpha Level( 0.0027 )
);
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Specify variables.
- Define subgroup.
- Set alpha level.
Example 3
Summary: Visualizes a multivariate control chart to monitor and detect changes in large and medium-sized variables, utilizing Principal Component 1 for dimensionality reduction and Phase Detection for anomaly detection.
Code:
// Multivariate Control Chart
// Open data table
dt = Open("data_table.jmp");
// Multivariate Control Chart
Multivariate Control Chart(
Y( :Large, :Medium ),
Principal Components( 1 ),
Phase Detection( 1 )
);
Code Explanation:
- Open data table;
- Create Multivariate Control Chart.
- Set variables: Large, Medium.
- Use Principal Component 1.
- Enable Phase Detection.
Example 4
Summary: Calculates principal components and generates a new column with the sum of squares for a given data table, utilizing Multivariate Control Chart and formula-based calculations.
Code:
// Principal Component Analysis
// Open data table
dt = Open("data_table.jmp");
// Principal Component Analysis
Multivariate Control Chart(
Y(
:Fuel, :Steam Flow, :Steam Temp,
:MW, :Cool Temp, :Pressure
)
) << Save T Square <<
Save Principal Components;
Current Data Table() <<
New Column( :PCA Column,
Continuous,
Formula(
:Prin1 ^ 2 + :Prin2 ^ 2 + :Prin3
^ 2 + :Prin4 ^ 2 + :Prin5 ^ 2
+:Prin6 ^ 2
)
);
Code Explanation:
- Open data table.
- Perform PCA analysis.
- Save T Square.
- Save Principal Components.
- Create new column.
- Set column type continuous.
- Define formula for PCA Column.
- Sum squares of principal components.
Example 5
Summary: Visualizes a multivariate control chart to monitor and analyze the thickness measurements of multiple samples, utilizing T Square partitioning and principal components.
Code:
// Multivariate Control Chart
// Open data table
dt = Open("data_table.jmp");
// Multivariate Control Chart
Multivariate Control Chart(
Y(
:Thickness 01, :Thickness 02,
:Thickness 03, :Thickness 04,
:Thickness 05, :Thickness 06,
:Thickness 07, :Thickness 08,
:Thickness 09, :Thickness 10,
:Thickness 11, :Thickness 12
),
T Square Partitioned( 1 ),
Principal Components( 1 ),
Set Alpha Level(
0.00270000000000004
)
);
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Select multiple thickness columns.
- Enable T Square partitioned.
- Enable principal components.
- Set alpha level.
Example 6
Summary: Creates a multivariate control chart with T Square partitioned, show correlation, and show inverse covariance, while setting report title and closing T Square with all principal components.
Code:
dt = Open("data_table.jmp");
obj = Multivariate Control Chart(
Y( :Large, :Medium ),
Principal Components( 0 ),
T Square Partitioned( 1 ),
Show Correlation( 1 ),
Show Inverse Covariance( 1 ),
SendToReport(
Dispatch( {}, "Multivariate Control Chart", OutlineBox,
{Set Title( "T Square Partitioned 1, Show Correlation, Show Inverse Covariance" )}
),
Dispatch( {}, "T Square with All Principal Components", OutlineBox, {Close( 1 )} )
)
);
Code Explanation:
- Open table.
- Create multivariate control chart.
- Set Y variables.
- Disable principal components.
- Enable T Square partitioned.
- Enable show correlation.
- Enable show inverse covariance.
- Set report title.
- Close T Square with all components.
Example 7
Summary: Creates a multivariate control chart with scatterplot matrix visualization, utilizing principal components and phase detection.
Code:
dt = Open("data_table.jmp");
obj = Multivariate Control Chart(
Y( :Large, :Medium ),
Principal Components( 1 ),
Phase Detection( 1 ),
SendToReport(
Dispatch( {"Scatterplot Matrix"}, "101", ScaleBox, {Max( 100.1625 )} ),
Dispatch( {"Scatterplot Matrix"}, "100", ScaleBox, {Min( 0.155 ), Inc( 2 )} ),
Dispatch( {"Scatterplot Matrix"}, FrameBox( 2 ), Frame Size( 41, 40 ) )
)
);
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Set Y variables: Large, Medium.
- Use principal components: 1.
- Enable phase detection.
- Adjust scatterplot matrix scale.
- Set maximum value: 100.1625.
- Set minimum value: 0.155.
- Set increment value: 2.
- Resize frame box: 41x40.
Example 8
Summary: Creates a multivariate control chart with T Square partitioned, showing correlation and inverse covariance matrices, and customizing the report title and frame size.
Code:
dt under test = Open("data_table.jmp");
obj = Multivariate Control Chart(
Y( :Large, :Medium ),
Principal Components( 0 ),
T Square Partitioned( 1 ),
Show Correlation( 1 ),
Show Inverse Covariance( 1 ),
SendToReport(
Dispatch( {}, "Multivariate Control Chart", OutlineBox,
{Set Title( "T Square Partitioned 1, Show Correlation, Show Inverse Covariance" )}
),
Dispatch( {}, "T Square with All Principal Components", OutlineBox, {Close( 1 )} ),
Dispatch( {"T Square with All Principal Components"}, FrameBox, {Frame Size( 53, 277 )} )
)
);
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Set Y variables.
- Disable principal components.
- Enable T Square partitioned.
- Show correlation matrix.
- Show inverse covariance matrix.
- Set report title.
- Close all principal components plot.
- Resize frame.
Example 9
Summary: Creates a multivariate control chart with customized scatterplot matrix, using principal components and phase detection.
Code:
dt under test = Open("data_table.jmp");
obj = Multivariate Control Chart(
Y( :Large, :Medium ),
Principal Components( 1 ),
Phase Detection( 1 ),
SendToReport(
Dispatch( {"Scatterplot Matrix"}, "101", ScaleBox, {Max( 100.1625 )} ),
Dispatch( {"Scatterplot Matrix"}, "100", ScaleBox, {Min( 0.155 ), Inc( 2 )} ),
Dispatch( {"Scatterplot Matrix"}, FrameBox( 2 ), Frame Size( 41, 40 ) )
)
);
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Set Y variables: Large, Medium.
- Use principal components: 1.
- Enable phase detection: 1.
- Customize scatterplot matrix.
- Set max scale: 100.1625.
- Set min scale: 0.155.
- Set increment: 2.
- Resize frame size: 41x40.
Example 10
Summary: Creates a multivariate control chart and report, combining data table and chart in a JMP application on Windows platforms.
Code:
dt = Open("data_table.jmp");
mcc = dt << Multivariate Control Chart( Y( :Fuel, :Steam Flow, :Steam Temp, :MW, :Cool Temp, :Pressure ), Principal Components( 1 ) );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "MCC App" );
app << Combine Windows( {mcc << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My MCC Report" );
app << Run;
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Check if host is Windows.
- Open new application.
- Get window list.
- Identify last window.
- Close last window.
- Create JMP app.
- Set app name.
- Combine chart and data table in app.
Example 11
Summary: Creates a multivariate control chart using principal components and phase detection, with report generation.
Code:
dt = Open("data_table.jmp");
obj = dt << Multivariate Control Chart( Y( :Large, :Medium ), Principal Components( 1 ), Phase Detection( 1 ) );
rpt = obj << report;
Code Explanation:
- Open data table;
- Create Multivariate Control Chart.
- Set Y variables: Large, Medium.
- Use 1 Principal Component.
- Enable Phase Detection.
- Generate report object.
Example 12
Summary: Creates a multivariate control chart to monitor heat and count data, with change point detection enabled.
Code:
dt = Open("data_table.jmp");
obj = dt << Multivariate Control Chart( Y( :heat ), Freq( :Count ), Change Point Detection( 1 ) );
Code Explanation:
- Open data table;
- Assign data table to variable.
- Create multivariate control chart.
- Set Y variable to heat.
- Set frequency to Count.
- Enable change point detection.
- Set change point detection level to 1.
Example 13
Summary: Creates a multivariate control chart for Health Expenditure per Capita, utilizing principal components analysis and change point detection.
Code:
dt = Open("data_table.jmp");
obj = dt << Multivariate Control Chart( Y( :Health Expenditure per Capita ), Principal Components( 1 ), Change Point Detection( 1 ) );
Code Explanation:
- Open data table.
- Create multivariate control chart.
- Set Y variable to Health Expenditure.
- Use principal components analysis.
- Enable change point detection.
Example 14
Summary: Creates a Multivariate Control Chart from a selected subset of rows in a data table, utilizing Principal Components and Change Point Detection.
Code:
dt = Open("data_table.jmp");
dt << select
rows(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]
) << hide << exclude;
obj = dt << Multivariate Control Chart(
Y( :Sepal length, :Sepal width, :Petal length, :Petal width ),
Principal Components( 1 ),
Change Point Detection( 1 ),
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Select specific rows.
- Hide selected rows.
- Exclude selected rows.
- Create Multivariate Control Chart.
- Set Y variables.
- Enable Principal Components.
- Enable Change Point Detection.
- Generate report object.
- Save report.