CUSUM Control Chart
Example 1
Summary: Creates a CUSUM Control Chart to monitor the performance of verbal and math scores across different years for each state, utilizing the provided data table.
Code:
// CUSUM Control Chart
// Open data table
dt = Open("data_table.jmp");
// CUSUM Control Chart
CUSUM Control Chart(
Y( :Y ),
Lower Side( 1 ),
Target( 100 ),
Sigma( 10 )
);
Code Explanation:
- Open data table.
- Create CUSUM Control Chart.
- Set Y variable.
- Enable lower side.
- Set target value.
- Set sigma value.
Example 2
Summary: Creates a CUSUM control chart to monitor and analyze the performance of verbal and math scores across different years for each state, utilizing the specified variables.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart( Y( :Outcome, :Gallbladder, :Hypertension ), X( :Pair ) );
rpt = Current Report();
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variables: Outcome, Gallbladder, Hypertension.
- Set X variable: Pair.
- Store chart object in "obj".
- Get current report object.
- Store report object in "rpt".
Example 3
Summary: Creates a CUSUM Control Chart to monitor and analyze the performance of verbal and math scores across different years for each state.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart(
Y( :dose ),
X( :response ),
Lower Side( 1 ),
ARL Profiler( Profiler( 1, Term Value( H( 5, Min( 0 ), Lock( 0 ), Show( 1 ) ), Shift( 1, Lock( 0 ), Show( 1 ) ) ) ) )
);
rpt = obj << report;
Log Capture( obj << K( 3 ) );
Code Explanation:
- Open data table;
- Create CUSUM Control Chart.
- Set Y variable to "dose".
- Set X variable to "response".
- Enable Lower Side.
- Configure ARL Profiler.
- Set H value to 5.
- Set Min to 0.
- Capture log output.
- Display report.
Example 4
Summary: Creates a CUSUM control chart to monitor performance across different years for each state, utilizing the provided data table.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart( Y( :Outcome ), X( :Pair ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Assign chart to object.
- Generate report from chart.
Example 5
Summary: Creates a CUSUM control chart to monitor and analyze performance metrics across different years for each state.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart( Y( :NPN1 ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Assign chart object.
- Generate report.
Example 6
Summary: Creates a CUSUM control chart to monitor and analyze performance metrics, with customizable target value, sigma value, and ARL profiler configuration.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart(
Y( :Y ),
Show ARL( 1 ),
Target( 100 ),
Sigma( 10 ),
ARL Profiler( Profiler( 1, Term Value( h( 5, Min( 0 ), Lock( 0 ), Show( 1 ) ), k( 0, Lock( 0 ), Show( 1 ) ) ) ) )
);
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable.
- Display ARL for one defect.
- Set target value.
- Define sigma value.
- Configure ARL profiler.
- Lock h parameter.
- Show h parameter.
- Lock k parameter.
- Show k parameter.
- Generate report object.
Example 7
Summary: Creates a CUSUM Control Chart to monitor and analyze performance metrics across different years for each state, utilizing various parameters such as Y variable, X variable, shift value, K parameter, and H parameter.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart(
Y( :parent ht ),
X( :child ht ),
Show ARL( 0 ),
Lower Side( 1 ),
Parameters Report( 1 ),
Data Units( 1 ),
Shift( 2 ),
K( 1 ),
H( 5 )
);
rpt = obj << report;
Code Explanation:
- Open table.
- Create CUSUM chart.
- Set Y variable.
- Set X variable.
- Hide ARL plot.
- Enable lower side.
- Show parameters report.
- Use data units.
- Set shift value.
- Set K parameter.
- Set H parameter.
- Generate report.
Example 8
Summary: Creates a CUSUM control chart to monitor Resistance values across different Instruments, with customizable settings for ARL, Lower Side detection, and Shift value.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart(
Y( :Resistance ),
X( :Instrument ),
Save Summaries,
Show ARL( 1 ),
Lower Side( 1 ),
Shift( 1 ),
Sigma( 1 ),
HeadStart( 1 ),
H( 2 ),
ARL Profiler( Profiler( 1, Term Value( H( 2, Min( 0 ), Lock( 0 ), Show( 1 ) ), Shift( 1, Lock( 0 ), Show( 1 ) ) ) ) )
);
dtsum = Data Table("data_table");
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable to Resistance.
- Set X variable to Instrument.
- Save summaries to data table.
- Show ARL for 1.
- Enable lower side detection.
- Set shift value to 1.
- Set sigma to 1.
- Set head start to 1.
- Set H value to 2.
- Configure ARL profiler.
- Lock H value.
- Show H value.
- Lock shift value.
- Show shift value.
- Access summary data table.
Example 9
Summary: Creates a CUSUM control chart to monitor and analyze performance metrics across specific rows, utilizing target and sigma levels.
Code:
dt = Open("data_table.jmp");
dt << select rows( {25, 26, 27, 28, 29, 30} ) << exclude << hide;
obj = dt << CUSUM Control Chart( Y( :Y ), Target( 100 ), Sigma( 10 ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Select specific rows.
- Exclude selected rows.
- Hide excluded rows.
- Create CUSUM control chart.
- Set Y variable.
- Define target value.
- Specify sigma level.
- Generate report object.
- Save report object.
Example 10
Summary: Creates a CUSUM control chart for NPN1 data, utilizing process mean for center line and generating a report object.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart( Y( :NPN1 ), Data Units( 1 ), Use Process Mean for Center Line( 1 ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable to NPN1.
- Set data units to 1.
- Use process mean for center line.
- Generate report object.
Example 11
Summary: Creates and configures a CUSUM control chart to monitor Thickness 01 values, with customizable parameters for ARL, target value, sigma, head start, and test beyond limits.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart(
Y( :Thickness 01 ),
X( :Bar ),
Show ARL( 1 ),
Parameters Report( 1 ),
Target( 0.5 ),
Sigma( 0.2 ),
Head Start( 1 ),
Test Beyond Limits( 1 ),
ARL Profiler(
Profiler( 1, Confidence Intervals( 0 ), Term Value( h( 5, Min( 0 ), Lock( 0 ), Show( 1 ) ), k( 0.5, Lock( 0 ), Show( 1 ) ) ) )
),
Automatic Recalc( 1 ),
);
dt << Delete Columns( "Thickness 01" );
obj << Sigma( .1 );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable.
- Set X variable.
- Display ARL.
- Show parameters report.
- Set target value.
- Set sigma value.
- Enable head start.
- Test beyond limits.
- Configure ARL profiler.
- Enable automatic recalculation.
- Delete column from table.
- Update sigma value.
- Generate report.
CUSUM Control Chart using Add Rows
Summary: Creates a CUSUM control chart with specified columns from an open data table, utilizing the Get Limits function to retrieve limits from a predefined table.
Code:
dtLimits = New Table( "Untitled 36",
Add Rows( 7 ),
New Column( "_LimitsKey",
Character,
"Nominal",
Set Values( {"_H", "_K", "_Std Dev", "_Mean", "_Head Start", "_Two Sided", "_Data Units"} )
),
New Column( "Outcome", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [4, 0.6, 1.5, 0.49, 1, 0, 0] ) ),
New Column( "Hypertension", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [6, 0.4, 0.35, 0.37, 0, 1, 1] ) ),
New Column( "Gallbladder", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [7, 0.8, 0.31, 0.21, 2, 0, 0] ) )
);
dt = Open("data_table.jmp");
obj = dt << CUSUM Control Chart( Y( :Outcome, :Gallbladder, :Hypertension ), X( :Pair ), Get Limits( dtLimits ) );
rpt = Current Report();
Code Explanation:
- Create new table "Untitled 36".
- Add 7 rows to table.
- Define "_LimitsKey" column with character data.
- Set values for "_LimitsKey" column.
- Define "Outcome" column with numeric data.
- Set values for "Outcome" column.
- Define "Hypertension" column with numeric data.
- Set values for "Hypertension" column.
- Define "Gallbladder" column with numeric data.
- Set values for "Gallbladder" column.
- Open data table;
- Create CUSUM control chart with specified columns.
- Retrieve current report.
CUSUM Control Chart using Log Capture
Summary: Creates a CUSUM control chart to monitor resistance levels based on instrument data, with customizable ARL and shift values.
Code:
dt = Open("data_table.jmp");
Log Capture(
obj = dt << CUSUM Control Chart(
Y( :Resistance ),
X( :Instrument ),
Show ARL( 1 ),
Lower Side( 1 ),
Shift( 1 ),
Sigma( 1 ),
HeadStart( 1 ),
H( 2 ),
ARL Profiler( Profiler( 1, Term Value( H( 2, Min( 0 ), Lock( 0 ), Show( 1 ) ), Shift( 1, Lock( 0 ), Show( 1 ) ) ) ) )
)
);
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable.
- Set X variable.
- Display ARL.
- Enable lower side.
- Set shift value.
- Set sigma value.
- Enable head start.
- Set H value.
- Add ARL profiler.
CUSUM Control CHart
Summary: Creates a CUSUM control chart to monitor and analyze changes in height data, setting a target value of 0.
Code:
dt = Open("data_table.jmp");
obj = dt << CUSUM Control CHart( Y( :height ), Target( 0 ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create CUSUM control chart.
- Set Y variable to height.
- Set target value to 0.
- Generate chart report.
CUSUM Control Chart using Column
Example 1
Summary: Creates a CUSUM control chart for multivariate data, utilizing the 'Run' and 'AF' columns as Y variables and the 'Inclusion' column as X variable.
Code:
dt = Open("data_table.jmp");
Column( dt, "Run" ) << Set Property( "Spec Limits", {5, 10, 15} );
Column( dt, "AF" ) << Set Property( "Spec Limits", {5, 10, 15} );
Column( dt, "Inclusion" ) << Set Modeling Type( "Nominal" );
obj = dt << CUSUM Control Chart( Y( :Run, :AF ), X( :INCLUSION ) );
Code Explanation:
- Open data table;
- Set spec limits for "Run" column.
- Set spec limits for "AF" column.
- Set modeling type for "Inclusion" column.
- Create CUSUM control chart.
- Use "Run" and "AF" as Y variables.
- Use "INCLUSION" as X variable.
Example 2
Summary: Creates a CUSUM control chart for multivariate data, specifying spec limits and modeling type for 'Run' and 'AF' columns, and using process mean for center line.
Code:
dt = Open("data_table.jmp");
Column( dt, "Run" ) << Set Property( "Spec Limits", {5, 10, 15} );
Column( dt, "AF" ) << Set Property( "Spec Limits", {5, 10, 15} );
Column( dt, "Inclusion" ) << Set Modeling Type( "Nominal" );
obj = dt << CUSUM Control Chart( Y( :Run, :AF ), X( :INCLUSION ), Use Process Mean for Center Line( 1 ) );
rpt = Current Report();
Code Explanation:
- Open data table.
- Set spec limits for "Run".
- Set spec limits for "AF".
- Set modeling type for "Inclusion".
- Create CUSUM control chart.
- Specify "Run" and "AF" as Y variables.
- Specify "INCLUSION" as X variable.
- Use process mean for center line.
- Assign current report to variable.
- Store report object.