plot.TrialDesignOptimalConditionalError: Plot the optimal conditional error function

View source: R/utilities.R

plot.TrialDesignOptimalConditionalErrorR Documentation

Plot the optimal conditional error function

Description

The returned plot is a ggplot2 object and can be supplemented with additional layers using ggplot2 commands.

Usage

## S3 method for class 'TrialDesignOptimalConditionalError'
plot(x, range = c(0, 1), type = 1, plotNonMonotoneFunction = FALSE, ...)

Arguments

x

Design object of class TrialDesignOptimalConditionalError.

range

Numeric vector with two entries specifying the range of the x-axis of the plot.

type

Type of plot to be created. Options are:

  • type = 1: Plot the values of the optimal conditional error function against the first-stage p-value.

  • type = 2: Plot the second-stage information resulting from the optimal conditional error function against the first-stage p-value.

  • type = 3: Plot the likelihood ratio of the given specification of the optimal conditional error function against the first-stage p-value.

  • type = 4: Plot the function Q of the given specification of the optimal conditional error function against the first-stage p-value.

plotNonMonotoneFunction

Logical. Should the non-monotone version of the plot be drawn? Not applicable for plot type 3. Default: FALSE.

...

Additional arguments required for generic compatibility

Value

No return value, plots the design.


optconerrf documentation built on Sept. 9, 2025, 5:29 p.m.