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

View source: R/plot.multiarm_des_dtl_pois.R

plot.multiarm_des_dtl_poisR Documentation

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

Description

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

Usage

## S3 method for class 'multiarm_des_dtl_pois'
plot(
  x = des_dtl_pois(),
  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_pois", as returned by build_dtl_pois or des_dtl_pois (i.e., a multi-stage drop-the-losers multi-arm clinical trial design for a Poisson distributed outcome). Defaults to des_dtl_pois().

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_pois, des_dtl_pois, gui, opchar_dtl_pois, sim_dtl_pois.

Examples

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

## End(Not run)

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