powerPlot {mtdesign} | R Documentation |
Plot the power curve(s) for the given design(s)
powerPlot(grid, probs = seq(0, 1, 0.01))
grid |
the tibble containing the designs to be plotted |
probs |
the response rates for which the rejection probabilities are to be plotted |
the ggplot object containing the power curve(s)
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))