-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplot.multiarm_des_ss_norm.Rd
89 lines (81 loc) · 3.14 KB
/
plot.multiarm_des_ss_norm.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.multiarm_des_ss_norm.R
\name{plot.multiarm_des_ss_norm}
\alias{plot.multiarm_des_ss_norm}
\title{Plot operating characteristics of a single-stage multi-arm clinical trial
for a normally distributed primary outcome}
\usage{
\method{plot}{multiarm_des_ss_norm}(
x = des_ss_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{
\item{x}{A \code{\link{list}} of class \code{"multiarm_des_ss_norm"}, as
returned by \code{\link{build_ss_norm}} or \code{\link{des_ss_norm}} (i.e., a
single-stage multi-arm clinical trial design for a normally distributed
outcome). Defaults to \code{des_ss_norm()}.}
\item{delta_min}{A \code{\link{numeric}} specifying the chosen minimum value
for the treatment effects to include on the produced plots. Defaults to
\code{-x$delta1}.}
\item{delta_max}{A \code{\link{numeric}} specifying the chosen maximum
value for the treatment effects to include on the produced plots. Defaults to
\code{2*x$delta1}.}
\item{delta}{A \code{\link{numeric}} specifying the chosen treatment effect
shift to use in the 'shifted treatment effects plot'. Defaults to
\code{x$delta1 - x$delta0}.}
\item{density}{A \code{\link{numeric}} variable indicating the number of
treatment effect scenarios to consider for each power curve. Increasing
\code{density} increases the smoothness of the produced plots, at the cost of
increased run time. Defaults to \code{100}.}
\item{output}{A \code{\link{logical}} variable indicating whether the
available outputs from the function (see below) should be returned. Defaults
to \code{FALSE}.}
\item{print_plots}{A \code{\link{logical}} variable indicating whether to
print produced plots. Defaults to \code{TRUE}.}
\item{summary}{A \code{\link{logical}} variable indicating whether a summary
of the function's progress should be printed to the console. Defaults to
\code{FALSE}.}
\item{...}{Not currently used.}
}
\value{
If \code{output = T}, a list containing the following elements
\itemize{
\item A \code{\link{list}} in the slot \code{$plots} containing the produced
plots.
\item Each of the input variables.
}
}
\description{
\code{plot.multiarm_des_ss_norm()} produces power curve plots for a specified
single-stage multi-arm clinical trial design assuming the primary outcome is
normally distributed.
}
\examples{
\dontrun{
# The design for the default parameters
des <- des_ss_norm()
plot(des)
# An A-optimal design, returning the avaiable outputs from
# plot.multiarm_des_ss_norm()
des_A <- des_ss_norm(ratio = "A")
plots <- plot(des_A, output = T)
# Using the root-K allocation rule, modifying the desired type of power, and
# choosing an alternative multiple comparison correction
des_root_K <- des_ss_norm(ratio = rep(1/sqrt(2), 2),
correction = "holm_bonferroni",
power = "disjunctive")
plot(des_root_K)
}
}
\seealso{
\code{\link{build_ss_norm}}, \code{\link{des_ss_norm}},
\code{\link{gui}}, \code{\link{opchar_ss_norm}}, \code{\link{sim_ss_norm}}.
}