Diff of /man/biomkrAccrualSim.Rd [000000] .. [d9ee58]

Switch to unified view

a b/man/biomkrAccrualSim.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/utils-batches.R
3
\name{biomkrAccrualSim}
4
\alias{biomkrAccrualSim}
5
\title{Run a number of batches of recruitment prediction and
6
collect summary statistics on arm closures, and final
7
recruitment totals for all experimental and control arms}
8
\usage{
9
biomkrAccrualSim(
10
  n = 100,
11
  centres_file = "centres.csv",
12
  arms_file = "arms.json",
13
  data_path = "extdata/",
14
  output_path = "../biomkrAccrual_output_data/",
15
  figs_path = paste0(output_path, "figures/"),
16
  accrual_period = 50/4,
17
  interim_period = 25/4,
18
  precision = 10,
19
  ctrl_ratio = c(1, 1),
20
  target_arm_size = 60,
21
  target_interim = target_arm_size/2,
22
  target_control = 180,
23
  target_interim_control = target_control/2,
24
  shared_control = TRUE,
25
  fixed_centre_starts = TRUE,
26
  fixed_site_rates = FALSE,
27
  fixed_region_prevalences = FALSE,
28
  quietly = TRUE,
29
  keep_files = FALSE
30
)
31
}
32
\arguments{
33
\item{n}{Number of instances to run (defaults to 100)}
34
35
\item{centres_file}{File containing recruitment centre data
36
(defaults to "centres.csv")}
37
38
\item{arms_file}{File containing list of which recruitment
39
arms recruit to which experimental arm}
40
41
\item{data_path}{Folder where \code{centres_file}, \code{prop_file} and
42
\code{arms_file} are located. Defaults to the location of the package
43
example data in the package installation; this should be changed.}
44
45
\item{output_path}{Folder where data generated during execution
46
will be stored; defaults to \verb{../biomkrAccrual_output_data/}.}
47
48
\item{figs_path}{Folder where figures generated during execution
49
will be stored; defaults to the \code{figures} subdirectory in
50
\code{output_path}.}
51
52
\item{accrual_period}{Maximum number of weeks to recruit
53
(defaults to 80)}
54
55
\item{target_arm_size}{Maximum size for all experimental arms
56
(defaults to 308)}
57
58
\item{target_interim}{Recruitment target for experimental arms
59
at interim analysis; defaults to \code{target_arm_size / 2}.}
60
61
\item{target_control}{Maximum size for all control arms
62
(defaults to 308)}
63
64
\item{target_interim_control}{Recruitment target for control arms
65
at interim analysis; defaults to \code{target_control / 2}.}
66
67
\item{shared_control}{= TRUE,}
68
69
\item{fixed_centre_starts}{TRUE if centres are assumed to start
70
exactly when planned; FALSE if some randomisation should be added.}
71
72
\item{fixed_site_rates}{TRUE if centre recruitment rates should
73
be treated as exact; FALSE if they should be drawn from a gamma
74
distribution with a mean of the specified rate.}
75
76
\item{fixed_region_prevalences}{TRUE if biomarker prevalences
77
should be considered to be identical for all sites within a
78
region; FALSE if they should be drawn from a Dirichlet distribution
79
with a mean of the specified prevalence.}
80
81
\item{quietly}{If TRUE, do not display information and plots from
82
individual runs within the batch. Defaults to TRUE.}
83
84
\item{keep_files}{If FALSE, do not save data or plots from individual
85
runs within the batch.  Defaults to FALSE.}
86
}
87
\value{
88
Dataframe of site closing times
89
90
Dataframe of experimental arm totals
91
}
92
\description{
93
Run a number of batches of recruitment prediction and
94
collect summary statistics on arm closures, and final
95
recruitment totals for all experimental and control arms
96
}