plot_mds_oc: Plot OC Values for an MDS Plan

View source: R/rMDSPTT.R

plot_mds_ocR Documentation

Plot OC Values for an MDS Plan

Description

Produces a base R OC curve using the 'Pa' values returned by 'mds_oc()'.

Usage

plot_mds_oc(x, ...)

Arguments

x

Output from 'mds_oc()'.

...

Additional graphical arguments passed to 'plot()'.

Details

Different termination ratios 'a' are distinguished using different plotting symbols ('pch') and line types ('lty').

Value

Invisibly returns the supplied data frame.

Examples


shape <- 2
a <- c(0.5, 1, 1.5, 2)

p_design <- 1 - exp(-(a / 1)^shape)

b_oc <- 2:12

p_oc <- sapply(
  b_oc,
  function(b)
    1 - exp(-((a / b)^shape))
)

result <- mds_oc(
  p_design = p_design,
  a = a,
  p_oc = p_oc,
  b_oc = b_oc,
  i = 3,
  beta = 0.25,
  c1 = 0,
  c2 = 1
)

plot_mds_oc(result)


rMDSPTT documentation built on Oct. 2, 2026, 5:09 p.m.

Related to plot_mds_oc in rMDSPTT...