Package 'mxcc'

Title: Maxwell Control Charts
Description: Computes Control limits, coefficients of control limits, various performance metrics and depicts control charts for monitoring Maxwell-distributed quality characteristics.
Authors: Zahid Khan [aut], Zsolt T. Kosztyan [aut, cre]
Maintainer: Zsolt T. Kosztyan <[email protected]>
License: GPL (>= 2)
Version: 0.0.1
Built: 2024-10-30 09:24:39 UTC
Source: CRAN

Help Index


Failure Time of Vertical Boring Machine

Description

This dataset contains the failure times (in hours) of a vertical boring machine, used to illustrate the control chart for monitoring the Maxwell distribution parameter.The data was originally reported by Krishna and Malik (2012).

Usage

data("failure_time")

Format

A data frame consisted of 8 sample batches each wiht 4 observations.

Details

The failure times in this dataset are organized into 8 subgroups, each containing 4 observations. The failure times are measured in hours. These data are used to construct control charts for monitoring the scale parameter of the Maxwell distribution.

Source

Krishna, H. and Malik, M. (2012) "Reliability estimation in Maxwell distribution with progressively Type-II censored data". Journal of Statistical Computation and Simulation, 82(4), pp.623–641. <doi:10.1080/00949655.2010.550291>

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Examples

data("failure_time")
failure_time

Computation of ARL Curves for V chart and VSQ chart

Description

It calculates the Average Run Length (ARL) for either the V or VSQ control charts, based on the specified sample size, shift constant, and false alarm probability. The user can choose between the two types of control charts.

Usage

mxarl(n_val = 1, delta = seq(1, 3, length.out = 100), alpha = 0.0027, type = "V")

Arguments

n_val

A numeric vector specifying the sample sizes. Default is 1.

delta

A numeric vector specifying the shift constants for the control chart. Default is seq(1, 3, length.out = 100).

alpha

A numeric value specifying the significance level (false alarm probability). Default is 0.0027.

type

A character string specifying the type of chart to be used. Can be either "V" chart or "VSQ". Default is "V".

Details

This function computes the Average Run Length (ARL) for both V and VSQ control charts by calculating the power and ARL values for the given sample sizes and shift constants

Value

A plot showing the ARL curves for the specified sample sizes and shift constants

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

See Also

mxpw

Examples

mxarl(n_val = c(5,10),  delta = seq(1, 3, length.out = 100), alpha = 0.0027, type = "V")

k -Coefficients Determination for V Chart and VSQ Chart for Maxwell-Distributed Quality Characteristics

Description

The function mxk calculates the coefficients for V and VSQ control charts used to monitor the scale parameter of Maxwell-distributed quality characteristics. It computes two coefficients based on the chosen chart type. For the V chart, the function returns L1 and L2, while for the VSQ chart, it returns P1 and P2.

Usage

mxk(n = 1, alpha = 0.0027, type = "V")

Arguments

n

Sample size. The number of observations in each subgroup (numeric). Defaults to 1.

alpha

Probability of false alarm (Type I error). Defaults to 0.0027 (numeric).

type

The type of chart. Accepts either "V" for the V chart or "VSQ" for the VSQ chart (character).

Details

The mxk function calculates the coefficients used in V and VSQ control charts for monitoring the scale parameter of Maxwell-distributed data. The user must specify the sample size n, the probability of a false alarm alpha, and the type of chart ("V" or "VSQ"). By default, n is set to 1, and alpha is set to 0.0027.

Value

Depending on the type of chart:

L1

Coefficient L1 for the V chart.

L2

Coefficient L2 for the V chart.

P1

Coefficient P1 for the VSQ chart.

P2

Coefficient P2 for the VSQ chart.

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

Examples

mxk(n = 4, alpha = 0.0027, type = "VSQ")

L-sigma Multiplier for V chart and VSQ chart

Description

This function calculates the L-sigma multiplier (L) for control chart based on the specified type: V chart or VSQ chart. The calculation is based on the sample size and the false alarm probability.

Usage

mxm(n = 1, alpha = 0.0027, type = "V")

Arguments

n

Sample size used in the chart. Default is 1.

alpha

False alarm probability. Default is 0.0027.

type

The type of control chart. Can be "V" for V chart or "VSQ" for VSQ chart. Default is "V".

Details

The function computes the L-sigma multiplier for either V chart or VSQ chart based on the specified type. If the type is "V", it uses the gamma distribution with the specified parameters. If the type is "VSQ", it uses the ch distribution. The output is the L value that represent multiplier in the control limits for the respective chart.

Value

Returns the L-sigma multiplier (L) as a numeric value

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

Examples

mxm(n = 5, alpha = 0.005, type = "V")

Power Computation of V Chart and VSQ Chart for Maxwell-Distributed Quality Characteristics

Description

The mxp function calculates the power of V chart and VSQ control chart for monitoring the Maxwell scale parameter. It computes the probability of detecting a shift in the process, depending on the specified sample size, significance level, and the shift magnitude

Usage

mxp(n = 1, alpha = 0.0027, delta = 1, type)

Arguments

n

The sample size for each subgroup (Integer). Default is n = 1.

alpha

Probability of false alarm (type I error) for the control chart(numeric). Default is alpha = 0.0027.

delta

The shift constant representing the magnitude of the shift to detect(numeric). Default is delta = 1.

type

Specifies the type of control chart to be used. Options are "V"(character) for the V chart and "VSQ" (character) for the VSQ chart. This argument is required.

Details

The function calculates the power of a control chart based on the provided sample size (n), false alarm probability (alpha), and shift constant (delta). The chart type, either "V" or "VSQ", determines which chart is used for the calculations. Power is a critical metric that evaluates the sensitivity of the control chart to detecting process shifts, allowing users to monitor for deviations from the expected process behavior.

Value

A numeric value representing the power of the control chart to detect the process shift.

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

Examples

result <- mxp(n = 5, alpha = 0.0027, delta = 2, type = "V")
print(result)

Power Curves Construction for V chart and VSQ chart

Description

This function computes the power curves for V or VSQ control charts based on the Maxwell distribution. It allows the user to analyze the performance of these charts under different sample sizes and shifts in the process parameter.

Usage

mxpw(n_val = 1, delta = seq(1, 3, length.out = 100), alpha = 0.0027, type = "V")

Arguments

n_val

A numeric vector specifying the sample sizes. Default is 1.

delta

A numeric vector specifying the shift constants for the control chart. Default is seq(1, 3, length.out = 100).

alpha

A numeric value specifying the significance level (false alarm probability). Default is 0.0027.

type

A character string specifying the type of chart to be used. Can be either "V" chart or "VSQ". Default is "V".

Details

This function calculates the power curves for either the V or VSQ control charts, depending on the specified type parameter. It computes the power values for different sample sizes and shift constants. The function uses the Gamma and Chi distribution functions for the V and VSQ charts, respectively.

Value

The function returns a plot of power curves for the specified control chart type

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

See Also

mxp

Examples

mxpw(n = c(5,8), alpha = 0.0027, type = "VSQ")

Characteristics of Run Length Distribution for V Chart and VSQ Control Chart

Description

The mxrl function computes key characteristics of the run length distribution for V and VSQ control charts. It calculates the Average Run Length (ARL), Standard Deviation of the Run Length (SDRL), and Median Run Length (MRL), based on the provided sample size, significance level, shift constant, and control chart type.

Usage

mxrl(n = 1, alpha = 0.0027, delta = 1, type = "V")

Arguments

n

The sample size for each subgroup (Integer). Default is n = 1.

alpha

Probability of false alarm (type I error) for the control chart(numeric). Default is alpha = 0.0027.

delta

The shift constant representing the magnitude of the shift to detect(numeric). Default is delta = 1.

type

Specifies the type of control chart to be used. Options are "V"(character) for the V chart and "VSQ" (character) for the VSQ chart. This argument is required.

Details

This function computes the characteristics of the run length distribution for either the V chart or the VSQ chart. The run length distribution is an essential metric in control chart analysis as it quantifies the performance of the control chart in detecting shifts in the process. The ARL is the expected number of samples before an out-of-control signal, SDRL is the standard deviation of the run length, and MRL is the median run length.

Value

A list with the following components:

ARL

The Average Run Length (ARL).

SDRL

The Standard Deviation of the Run Length (SDRL).

MRL

The Median Run Length (MRL).

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

Examples

mxrl(n = 2, alpha = 0.005, delta = 1, type = "VSQ")

V chart and VSQ chart Construction for Real Process Control

Description

The mxrpc function constructs control limits for the V and VSQ control charts using real data. It allows the user to specify the value of alpha, the type of control limit (Probability Limit Control Chart or K-Sigma Control Chart), and the type of control chart (V or VSQ). The function provides a summary of control chart parameters and plots the corresponding control chart.

Usage

mxrpc(data, alpha = 0.0027, limit = "PCL", chart = "V", summary = FALSE)

Arguments

data

A data frame containing real-world observations for which the control charts will be constructed.

alpha

The false alarm probability for control limit calculation. Default is alpha = 0.0027.

limit

The type of control limit to be used: either "PCL" for Probability Limit Control Chart or "KCL" for K-Sigma Control Chart. Default is limit = "PCL".

chart

The type of control chart to construct: either "V" for V chart or "VSQ" for VSQ chart. Default is chart = "V".

summary

Logical value indicating whether to display a summary of control chart parameters. Default is summary = FALSE.

Details

This function takes a real data set and generates control charts (V or VSQ) based on the specified control limit type (PCL or KCL). The function outputs both a graphical representation of the control chart and a summary of the control chart parameters, including control limits, central line, and the values used for constructing the chart.

Value

The function outputs a graph of the selected control chart (V or VSQ), and if summary = TRUE, it prints a summary of the control chart parameters including the lower control limit (LCL), center line (CL), and upper control limit (UCL).

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

See Also

mxspc

Examples

mxrpc(data=strength_data, alpha = 0.0027, limit = "PCL", chart = "VSQ", summary = TRUE)

V chart and VSQ chart Construction for Simulated Process Control

Description

This function constructs control limits for the V and VSQ control charts based on probability limits or k-sigma limits using simulated data from the Maxwell distribution. The function allows for flexible configuration of control chart types and limit methods.

Usage

mxspc(m = 25, n = 4, alpha = 0.0027, sigma,
limit = "PCL", chart = "V", summary = FALSE)

Arguments

m

The number of subgroups or samples. Default is m = 25.

n

The size of each sample or subgroup. Default is n = 4.

alpha

The false alarm probability for control limit calculation. Default is alpha = 0.0027.

sigma

The scale parameter of the Maxwell distribution, which must be provided by the user.

limit

The type of control limit to be used: either "PCL" for probability limit control chart or "KLC" for k-sigma limit control chart. Default is limit = "PCL".

chart

The type of control chart to construct: either "V" for V chart or "VSQ" for VSQ chart. Default is chart = "V".

summary

Logical value indicating whether to display a summary of control chart parameters. Default is summary = FALSE.

Details

The function simulates data from the Maxwell distribution using the provided scale parameter (sigma) and calculates control limits and statistics for the specified control chart type (V or VSQ). It allows for choosing between probability limit control charts and k-sigma control charts. A control chart is plotted based on the calculated limits and plotting statistics.

Value

A list of control chart parameters is returned invisibly, which includes:

LCL

The lower control limit (or probability limit).

CL

The center line of the control chart.

UCL

The upper control limit (or probability limit).

m

The number of subgroups.

n

The sample size for each subgroup.

sigma

The provided scale parameter for the Maxwell distribution.

limit

The type of limit used ("PCL" or "KLC").

chart

The type of control chart ("V" or "VSQ").

Author(s)

Zahid Khan

References

Hossain, M.P., Omar, M.H. and Riaz, M. (2017) "New V control chart for the Maxwell distribution". Journal of Statistical Computation and Simulation, 87(3), pp.594-606. <doi:10.1080/00949655.2016.1222391>

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

See Also

mxp,mxk

Examples

mxspc(m = 30, n = 4, alpha = 0.0027, sigma = 1777.86,
limit="PCL", summary = TRUE, chart = "V")

Strength Data of Carbon Fiber

Description

This dataset contains the strength measurements of carbon fiber tested under tension at various gauge levels. The data is used to construct control charts for monitoring the scale parameter of the Maxwell distribution in the carbon fiber industry.

Usage

data("strength_data")

Format

A data frame with 12 subgroups each with 5 observations.

Details

he dataset consists of 12 subgroups, each containing 5 measurements of carbon fiber strength. These measurements are used to compute the V-statistic, which is then applied to control charts for monitoring the Maxwell distribution's scale parameter. The data was originally reported by Badar and Priest (1982) and is slightly modified for statistical analysis.

Source

Badar, M. G., & Priest, A. M. (1982). Statistical aspects of fiber and bundle strength in hybrid composites. In "Progress in Science and Engineering Composites ICCM-IV, Tokyo", pp. 1129-1136.

References

Shah, F., Khan, Z., Aslam, M. and Kadry, S. (2021) "Statistical Development of the VSQ‐Control Chart for Extreme Data with an Application to the Carbon Fiber Industry". Mathematical Problems in Engineering, 2021(1), p.9766986. <doi:10.1155/2021/9766986>

Examples

data("strength_data")
strength_data