iso_equiv_two_sample {cmstatrExt}R Documentation

Calculate t1 and t2 pairs that have the same p-Value

Description

Calculates pairs of t1 and t2 values, which have the same p-value for the two-sample equivalency test. See p_equiv_two_sample().

Usage

iso_equiv_two_sample(n, m, alpha, t1max, t2max, n_points)

Arguments

n

the size of the qualification sample

m

the size of the equivalency sample

alpha

the desired p-value

t1max

the maximum value of t1 (only approximate)

t2max

the maximum value of t2 (only approximate)

n_points

the number of returned points is twice n_points

Details

The values t1 and t2 are based on the transformation:

t1 = (X_mean - Y_min) / S

t2 = (X_mean - Y_mean) / S

Where:

Value

A data.frame with values of t1 and t2

References

Kloppenborg, S. (2023). Lot acceptance testing using sample mean and extremum with finite qualification samples. Journal of Quality Technology, https://doi.org/10.1080/00224065.2022.2147884

See Also

p_equiv_two_sample(), k_equiv_two_sample()

Examples


if(requireNamespace("tidyverse")){
  library(cmstatrExt)
  library(tidyverse)
  curve <- iso_equiv_two_sample(24, 8, 0.05, 4, 1.5, 10)
  curve

  curve %>%
    ggplot(aes(x = t1, y = t2)) +
      geom_path() +
      ggtitle("Acceptance criteria for alpha=0.05")
}



[Package cmstatrExt version 0.4.0 Index]