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

Switch to unified view

a b/man/accrual.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/recruit.R
3
\name{accrual}
4
\alias{accrual}
5
\title{A class to contain the accrued patient allocations,
6
by site, treatment/control arm and week}
7
\usage{
8
accrual(treatment_arm_ids, shared_control, target_arm_size, 
9
target_control, target_interim, accrual_period, interim_period, centres_df)
10
}
11
\arguments{
12
\item{treatment_arm_ids}{Named list of lists of recruitment arms by
13
treatment arm.}
14
15
\item{shared_control}{TRUE if all experimental arms share one control arm;
16
FALSE if each has their own}
17
18
\item{target_arm_size}{Number of subjects required for each treatment arm.}
19
20
\item{target_control}{Number of subjects required for control arm(s).}
21
22
\item{target_interim}{Number of subjects required for treatment arm at
23
interim analysis.}
24
25
\item{accrual_period}{Number of weeks in recruitment period.}
26
27
\item{interim_period}{Number of weeks to recruit for interim analysis.}
28
29
\item{centres_df}{Dataframe with columns "site", "start_month", "mean_rate",
30
"region" and "site_cap"}
31
}
32
\description{
33
A class to contain the accrued patient allocations,
34
by site, treatment/control arm and week
35
}
36
\section{Slots}{
37
38
\describe{
39
\item{\code{accrual}}{3-D array with axes site, experimental arm
40
and week}
41
42
\item{\code{target_arm_size}}{Number of subjects required for each treatment arm.}
43
44
\item{\code{target_control}}{Number of subjects required for control arm(s).}
45
46
\item{\code{target_interim}}{Number of subjects required for treatment arm at
47
interim analysis.}
48
49
\item{\code{accrual_period}}{Number of weeks in recruitment period.}
50
51
\item{\code{interim_period}}{Number of weeks to recruit for interim analysis.}
52
53
\item{\code{phase_changes}}{Vector of week numbers when arms closed}
54
55
\item{\code{site_closures}}{Vector of weeks sites closed; NA indicates open}
56
57
\item{\code{week}}{Current recruitment week}
58
59
\item{\code{active_arms}}{Vector of indices of open arms}
60
61
\item{\code{active_sites}}{Vector of indices of open sites}
62
63
\item{\code{shared_control}}{TRUE if a shared control arm is being used, else FALSE}
64
65
\item{\code{site_in_region}}{Vector of indices for which set of expected
66
prevalences each site should use}
67
68
\item{\code{site_cap}}{Vector of maximum number of patients for each site}
69
70
\item{\code{site_mean_rate}}{Vector of expected recruitment rates for each site}
71
72
\item{\code{site_rate}}{Vector of recruitment rates for each site, drawn from a
73
gamma distribution}
74
75
\item{\code{start_week}}{Vector of weeks that each site opens recruitment}
76
77
\item{\code{site_index}}{Vector of index numbers for each site}
78
79
\item{\code{treatment_arm_ids}}{Named list of lists of recruitment arms by
80
treatment arm.}
81
}}
82