Diff of /README.md [000000] .. [d9ee58]

Switch to unified view

a b/README.md
1
# biomkrAccrual
2
## Simulating recruitment at time of randomisation to adaptive trials with arm eligibility determined by biomarker status.
3
4
The `{biomkrAccrual}` package uses a Poisson-Gamma-Dirichlet model to simulate
5
trial recruitment for multi-site, multi-region, multi-arm trials. Recruitment per 
6
site is modelled with the Poisson-Gamma model (Anisimov and Federov, 2007).
7
A hierarchical Dirichlet model is used to model biomarker proportions for sites
8
within regions. Recruitment to a given site in a given week is then randomised
9
to biomarker status using the prevalences drawn from the Dirichlet model for that
10
site.
11
12
## Running a single simulation
13
14
`biomkrAccrual()`
15
16
The default settings will use the configuration files in the `extdata` directory, and will
17
keep the resulting data files and recruitment plots. The location can be specified with 
18
`output_path` and `figs_path`.
19
20
## Running a set of simulations
21
22
`biomkrAccrualSim(n = 250)`
23
24
The datafiles and recruitment plots from the individual runs will not be kept (this
25
can be changed with `quietly = FALSE`) but will preserve the summary datafiles and
26
distribution plots.
27
28
## Practical notes
29
30
There are a very large number of arguments to both commands, and three configuation files,
31
one of which (the relationship of treatment arms to biomarker recruitment arms) is a JSON.  
32
This is because flexibility is required, and they are intended to be driven by a dashboard 
33
in future.
34
35
This package will not pass R CMD Check because it is written using the new object orientation 
36
system for R, `{S7}`, and CMD Check does not yet understand the syntax.
37
38
39
Anisimov, V.V., Fedorov, V.V., 2007. Modelling, prediction and adaptive adjustment of 
40
recruitment in multicentre trials. Statistics in Medicine 26, 4958–4975. 
41
https://doi.org/10.1002/sim.2956
42