plot.multiarm_des_dtl_norm: Plot operating characteristics of a multi-stage...

View source: R/plot.multiarm_des_dtl_norm.R

plot.multiarm_des_dtl_normR Documentation

Plot operating characteristics of a multi-stage drop-the-losers multi-arm clinical trial for a normally distributed primary outcome

Description

plot.multiarm_des_dtl_norm() produces power curve plots for a specified multi-stage drop-the-losers multi-arm clinical trial design assuming the primary outcome is normally distributed.

Usage

## S3 method for class 'multiarm_des_dtl_norm'
plot(
  x = des_dtl_norm(),
  delta_min = -x$delta1,
  delta_max = 2 * x$delta1,
  delta = x$delta1 - x$delta0,
  density = 100,
  output = FALSE,
  print_plots = TRUE,
  summary = FALSE,
  ...
)

Arguments

x

A list of class "multiarm_des_dtl_norm", as returned by build_dtl_norm or des_dtl_norm (i.e., a multi-stage drop-the-losers multi-arm clinical trial design for a normally distributed outcome). Defaults to des_dtl_norm().

delta_min

A numeric specifying the chosen minimum value for the treatment effects to include on the produced plots. Defaults to -x$delta1.

delta_max

A numeric specifying the chosen maximum value for the treatment effects to include on the produced plots. Defaults to 2*x$delta1.

delta

A numeric specifying the chosen treatment effect shift to use in the 'shifted treatment effects plot'. Defaults to x$delta1 - x$delta0.

density

A numeric variable indicating the number of treatment effect scenarios to consider for each power curve. Increasing density increases the smoothness of the produced plots, at the cost of increased run time. Defaults to 100.

output

A logical variable indicating whether the available outputs from the function (see below) should be returned. Defaults to FALSE.

print_plots

A logical variable indicating whether to print produced plots. Defaults to TRUE.

summary

A logical variable indicating whether a summary of the function's progress should be printed to the console. Defaults to FALSE.

...

Not currently used.

Value

If output = T, a list containing the following elements

  • A list in the slot $plots containing the produced plots.

  • Each of the input variables.

See Also

build_dtl_norm, des_dtl_norm, gui, opchar_dtl_norm, sim_dtl_norm.

Examples

## Not run: 
# The design for the default parameters
des        <- des_dtl_norm()
plot(des)

## End(Not run)

mjg211/multiarm documentation built on Jan. 19, 2024, 8:21 a.m.