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

Switch to unified view

a b/man/biomkrAccrual.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/spine.R
3
\name{biomkrAccrual}
4
\alias{biomkrAccrual}
5
\title{Command line}
6
\usage{
7
biomkrAccrual(
8
  target_arm_size = 60,
9
  target_interim = target_arm_size/2,
10
  target_control = 180,
11
  shared_control = TRUE,
12
  accrual_period = 50/4,
13
  interim_period = accrual_period/2,
14
  precision = 10,
15
  ctrl_ratio = c(1, 1),
16
  centres_file = "centres.csv",
17
  prop_file = "proportions.csv",
18
  arms_file = "arms.json",
19
  data_path = "extdata/",
20
  output_path = "../biomkrAccrual_output_data/",
21
  figs_path = paste0(output_path, "figures/"),
22
  fixed_centre_starts = TRUE,
23
  fixed_site_rates = FALSE,
24
  fixed_region_prevalences = FALSE,
25
  quietly = FALSE,
26
  keep_files = TRUE
27
)
28
}
29
\arguments{
30
\item{target_arm_size}{Number of patients required per
31
treatment arm}
32
33
\item{target_interim}{Number of patients required per
34
arm for interim analysis; defaults to \verb{target_arm_size \\ 2}}
35
36
\item{target_control}{Number of patients required for the
37
control arm(s)}
38
39
\item{shared_control}{TRUE if all treatment arms share the
40
same control arm; FALSE if each treatment arm has its own
41
control. Defaults to TRUE.}
42
43
\item{accrual_period}{Recruitment period (months).}
44
45
\item{interim_period}{Recruitment period to interim (months).}
46
47
\item{precision}{For the Dirichlet model of biomarker prevalences,
48
variability decreases as precision increases. Defaults to 10.}
49
50
\item{ctrl_ratio}{Ratio of patient allocation to treatment arm
51
versus control for all active arms; defaults to c(1, 1).}
52
53
\item{centres_file}{Name of CSV file with information about
54
each recruitment centre; this should have columns "site",
55
"start_month", "mean_rate", "region" and optionally "site_cap"
56
if recruitment is capped per site. Defaults to \code{centres.csv}.}
57
58
\item{prop_file}{Name of CSV file with expected biomarker prevalences
59
for each region; this should have one column "category", naming
60
the biomarkers or biomarker combinations, and one column per
61
region. Defaults to \code{proportions.csv}.}
62
63
\item{arms_file}{Name of JSON file describing which recruitment
64
arms (defined by biomarkers) recruit to which treatment arms.
65
Defaults to \code{arms_json}.}
66
67
\item{data_path}{Folder where \code{centres_file}, \code{prop_file} and
68
\code{arms_file} are located. Defaults to the location of the package
69
example data in the package installation; this should be changed.}
70
71
\item{output_path}{Folder where data generated during execution
72
will be stored; defaults to \verb{../biomkrAccrual_output_data/}.}
73
74
\item{figs_path}{Folder where figures generated during execution
75
will be stored; defaults to the \code{figures} subdirectory in
76
\code{output_path}.}
77
78
\item{fixed_centre_starts}{TRUE if centres are assumed to start
79
exactly when planned; FALSE if some randomisation should be added.}
80
81
\item{fixed_site_rates}{TRUE if centre recruitment rates should
82
be treated as exact; FALSE if they should be drawn from a gamma
83
distribution with a mean of the specified rate.}
84
85
\item{fixed_region_prevalences}{TRUE if biomarker prevalences
86
should be considered to be identical for all sites within a
87
region; FALSE if they should be drawn from a Dirichlet distribution
88
with a mean of the specified prevalence.}
89
90
\item{quietly}{Defaults to FALSE, which displays the output from
91
each run. Set to TRUE to generate data and figures without displaying
92
them.}
93
94
\item{keep_files}{Save data files and plots generated during the run.
95
Defaults to TRUE.}
96
}
97
\description{
98
Command line
99
}
100
\examples{
101
biomkrAccrual()
102
103
}