blocked_stratified_randlist: Create randomization lists

View source: R/blockrand2randlist.R

blocked_stratified_randlistR Documentation

Create randomization lists

Description

Create pdf, envelopes and xlsx randomization lists for a stratified, blocked study and export them

Usage

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)
)

Arguments

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)


lbraglia/lbrct documentation built on July 7, 2023, 6:39 a.m.