[d9ee58]: / man / accrual.Rd

Download this file

83 lines (55 with data), 2.7 kB

 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recruit.R
\name{accrual}
\alias{accrual}
\title{A class to contain the accrued patient allocations,
by site, treatment/control arm and week}
\usage{
accrual(treatment_arm_ids, shared_control, target_arm_size,
target_control, target_interim, accrual_period, interim_period, centres_df)
}
\arguments{
\item{treatment_arm_ids}{Named list of lists of recruitment arms by
treatment arm.}
\item{shared_control}{TRUE if all experimental arms share one control arm;
FALSE if each has their own}
\item{target_arm_size}{Number of subjects required for each treatment arm.}
\item{target_control}{Number of subjects required for control arm(s).}
\item{target_interim}{Number of subjects required for treatment arm at
interim analysis.}
\item{accrual_period}{Number of weeks in recruitment period.}
\item{interim_period}{Number of weeks to recruit for interim analysis.}
\item{centres_df}{Dataframe with columns "site", "start_month", "mean_rate",
"region" and "site_cap"}
}
\description{
A class to contain the accrued patient allocations,
by site, treatment/control arm and week
}
\section{Slots}{
\describe{
\item{\code{accrual}}{3-D array with axes site, experimental arm
and week}
\item{\code{target_arm_size}}{Number of subjects required for each treatment arm.}
\item{\code{target_control}}{Number of subjects required for control arm(s).}
\item{\code{target_interim}}{Number of subjects required for treatment arm at
interim analysis.}
\item{\code{accrual_period}}{Number of weeks in recruitment period.}
\item{\code{interim_period}}{Number of weeks to recruit for interim analysis.}
\item{\code{phase_changes}}{Vector of week numbers when arms closed}
\item{\code{site_closures}}{Vector of weeks sites closed; NA indicates open}
\item{\code{week}}{Current recruitment week}
\item{\code{active_arms}}{Vector of indices of open arms}
\item{\code{active_sites}}{Vector of indices of open sites}
\item{\code{shared_control}}{TRUE if a shared control arm is being used, else FALSE}
\item{\code{site_in_region}}{Vector of indices for which set of expected
prevalences each site should use}
\item{\code{site_cap}}{Vector of maximum number of patients for each site}
\item{\code{site_mean_rate}}{Vector of expected recruitment rates for each site}
\item{\code{site_rate}}{Vector of recruitment rates for each site, drawn from a
gamma distribution}
\item{\code{start_week}}{Vector of weeks that each site opens recruitment}
\item{\code{site_index}}{Vector of index numbers for each site}
\item{\code{treatment_arm_ids}}{Named list of lists of recruitment arms by
treatment arm.}
}}