Skip to contents

Displays an operating characteristics curve of Go/NoGo/Gray decision probabilities against the true treatment effect for continuous endpoint results returned by pbayesdecisionprob1cont.

Usage

# S3 method for class 'pbayesdecisionprob1cont'
plot(
  x,
  title = NULL,
  xlab = NULL,
  col_go = "#658D1B",
  col_nogo = "#D91E49",
  col_gray = "#939597",
  base_size = 28,
  ...
)

Arguments

x

An object of class pbayesdecisionprob1cont.

title

A character string for the plot title. Defaults to NULL (no title displayed).

xlab

A character string or expression for the x-axis label. Defaults to NULL, which auto-generates a label based on design.

col_go

A character string specifying the colour for the Go curve. Default is "#658D1B".

col_nogo

A character string specifying the colour for the NoGo curve. Default is "#D91E49".

col_gray

A character string specifying the colour for the Gray curve. Default is "#939597".

base_size

A positive numeric scalar specifying the base font size (in points) passed to theme_bw(). Default is 28.

...

Further arguments passed to or from other methods (ignored).

Value

Invisibly returns a ggplot object.

Details

For design = 'controlled' or design = 'external', the x-axis represents the treatment-minus-control difference \(\theta = \mu_t - \bar{\mu}_c\), where \(\bar{\mu}_c\) is the mean of the supplied mu_c values. For design = 'uncontrolled', the x-axis represents \(\mu_t\) directly.

Vertical reference lines are drawn at the decision thresholds:

  • When prob = 'posterior': lines at \(\theta_{TV}\) and \(\theta_{MAV}\) (converted to the x-axis scale).

  • When prob = 'predictive': a single line at \(\theta_{NULL}\).