The plotn() function examines the effect of increasing the probability of detection on the sample size, n, where the probability of a single sample unit being contaminated above the target limit is calculated from the msamp function p()
plotn(
C,
w,
G,
Sens,
D = c("homogeneous", "heterogeneous", "localized"),
r = NULL,
f = NULL
)A plot, of recordedplot class. The probability of detection is on the y-axis and the sample size n is on the x-axis. Overlaid at intersecting red dashed lines is the sample size for probability of detection (prob_det) = 0.9.
suspected lot contamination (CFU/g)
weight of single sample unit (g)
target value to detect (CFU/g)
sensitivity of the analytical test (%)
distribution of the bacteria in the product lot: "homogeneous", "heterogeneous", or "localized"
for the heterogeneous case only, the degree of heterogeneity. r > 0
for the localized case, r is further specified. 0 < f < 1
Refer to vignette for details.