
Plot the optimal conditional error function
Source:R/f_design_optimal_utilities.R
plot.TrialDesignOptimalConditionalError.RdThe returned plot is a ggplot2 object and can be supplemented with additional layers using ggplot2 commands.
Arguments
- x
Design object of class
TrialDesignOptimalConditionalError.- y
Not used; included for compatibility with
plot().- ...
Additional arguments for the generic method.
- 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 = "conditionalError"(or1): Plot the values of the optimal conditional error function against the first-stage p-value.type = "stageInformation"(or2): Plot the second-stage information resulting from the optimal conditional error function against the first-stage p-value.type = "likelihoodRatio"(or3): Plot the likelihood ratio of the given specification of the optimal conditional error function against the first-stage p-value.type = "qFunction"(or4): 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
type = "likelihoodRatio". Default:FALSE.