Example tables, mostly used in examples and tests.

grstat_example(
  N = 50,
  seed = 42,
  ae_n_max = 15,
  ae_p_sae = 0.1,
  ae_p_na = 0,
  r = 0.5,
  r2 = 1/3
)

Arguments

N

the number of patients

seed

the random seed (can be NULL)

ae_n_max

maximum number of AE per patient

ae_p_sae

proportion of serious AE

ae_p_na

proportion of missing values (can be a list with a number for each column)

r, r2

proportion of the "Control" arm in enrolres$arm and enrolres$arm3

Value

A list of datasets, like in EDCimport.