-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsim_ss_norm.Rd
66 lines (63 loc) · 2.37 KB
/
sim_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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim_ss_norm.R
\name{sim_ss_norm}
\alias{sim_ss_norm}
\title{Empirically determine the operating characteristics of a single-stage
multi-arm clinical trial for a normally distributed primary outcome}
\usage{
sim_ss_norm(
des = des_ss_norm(integer = TRUE),
tau,
replicates = 1e+05,
summary = FALSE
)
}
\arguments{
\item{des}{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). \strong{Note:} The sample sizes in all arms must be whole numbers.
Defaults to \code{des_ss_norm(integer = TRUE)}.}
\item{tau}{A \code{\link{matrix}} whose rows indicate values of
\ifelse{html}{\out{<b><i>τ</i></b>}}{\eqn{\bold{\tau}}} at which to
evaluate the operating characteristics. Defaults internally to the global
null, global alternative, and each of the least favourable configurations if
unspecified.}
\item{replicates}{A \code{\link{numeric}} indicating the number of replicate
simulations to use for each value of
\ifelse{html}{\out{<b><i>τ</i></b>}}{\eqn{\bold{\tau}}}. Defaults to
\code{1e5}.}
\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}.}
}
\value{
A \code{\link{list}} containing the following elements
\itemize{
\item A \code{\link{tibble}} in the slot \code{$sim} giving the estimated
operating characteristics.
\item Each of the input variables.
}
}
\description{
\code{sim_ss_norm()} determines the operating characteristics of a specified
single-stage multi-arm clinical trial design assuming the primary outcome is
normally distributed, for given values of the true treatment effects, using
simulation.
}
\examples{
\dontrun{
# The estimated operating characteristics for the default parameters
sim <- sim_ss_norm()
# An A-optimal design, specifying tau explicitly
des_A <- des_ss_norm(ratio = "A", integer = T)
sim_A <- sim_ss_norm(des_A, rbind(c(0, 0),
c(0.5, 0.5),
c(0.5, 0),
c(0, 0.5)))
}
}
\seealso{
\code{\link{build_ss_norm}}, \code{\link{des_ss_norm}},
\code{\link{opchar_ss_norm}}, \code{\link{plot.multiarm_des_ss_norm}}.
}