View source: R/blockrand2randlist.R
blocked_stratified_randlist | R Documentation |
Create pdf, envelopes and xlsx randomization lists for a stratified, blocked study and export them
blocked_stratified_randlist(
pi = "",
acronym = "",
sample_size = NA,
seed = NA,
treatment_levels = c("C", "T"),
block_size = c(2L, 4L, 6L),
centres = c("auslre"),
stratas = centres,
local_pis = c("PI Cognome Nome (AUSL RE-Irccs)"),
testing = FALSE,
print_checks = TRUE,
export = TRUE,
export_format = c("pdf", "xlsx", "xlsx_minimal", "envelopes"),
env_params = list(width = 11, height = 8)
)
pi |
global PI |
acronym |
study acronym |
sample_size |
total sample size (a randomization list with this numerosity will be created for each stratum/element of stratas) |
seed |
random seed |
treatment_levels |
labels used to identify the groups |
block_size |
blocks dimensions |
centres |
id of involved centres |
stratas |
label for each strata |
local_pis |
a string for footers of the printed lists, in the same number of stratas |
testing |
if TRUE it will generate a list using a different seed, for testing purposese (eg EDC setup) |
print_checks |
print performed checks on the randomization lists |
export |
logical (recicled, by default TRUE), which randomization lists to export |
export_format |
format of lists exporting (can have pdf, xlsx and/or envelopes) |
env_params |
envelopes parameters for printing (passed to blockrand::plotblockrand) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.