powerPlot {mtdesign}R Documentation

Plot the power curve(s) for the given design(s)

Description

Plot the power curve(s) for the given design(s)

Usage

powerPlot(grid, probs = seq(0, 1, 0.01))

Arguments

grid

the tibble containing the designs to be plotted

probs

the response rates for which the rejection probabilities are to be plotted

Value

the ggplot object containing the power curve(s)

Examples

createGrid(p0 = 0.05, p1 = 0.25, alpha = 0.05, beta = 0.2, mander = FALSE) %>%
  augmentGrid(cores = 2) %>%
  obtainDesign() %>%
  powerPlot(probs = seq(0, 0.5, 0.025))

[Package mtdesign version 0.1.0 Index]