Generate dataset for vignettes and simulation studies

generate_data()

Value

tibble data frame

Examples

set.seed(23)
df <- generate_data()
str(df)
#> tibble [16,000 × 12] (S3: tbl_df/tbl/data.frame)
#>  $ donor    : int [1:16000] 1 1 1 1 1 1 1 1 1 1 ...
#>  $ condition: Factor w/ 2 levels "control","treatment": 2 2 2 2 2 2 2 2 2 2 ...
#>  $ m01      : int [1:16000] 2 0 1 6 18 1 24 1 2 2 ...
#>  $ m02      : int [1:16000] 127 96 14 20 30 17 178 83 24 39 ...
#>  $ m03      : int [1:16000] 116 54 52 34 15 38 10 16 48 13 ...
#>  $ m04      : int [1:16000] 17 29 182 21 139 151 8 59 13 4 ...
#>  $ m05      : int [1:16000] 17 169 26 42 22 14 498 85 27 36 ...
#>  $ m06      : int [1:16000] 17 32 12 3 4 5 21 2 17 28 ...
#>  $ m07      : int [1:16000] 56 39 7 30 10 26 26 11 51 39 ...
#>  $ m08      : int [1:16000] 60 11 6 19 5 29 33 28 194 104 ...
#>  $ m09      : int [1:16000] 7 19 37 7 32 26 8 11 28 1 ...
#>  $ m10      : int [1:16000] 78 55 274 68 19 83 26 28 225 60 ...
df
#> # A tibble: 16,000 × 12
#>    donor condition   m01   m02   m03   m04   m05   m06   m07   m08   m09   m10
#>    <int> <fct>     <int> <int> <int> <int> <int> <int> <int> <int> <int> <int>
#>  1     1 treatment     2   127   116    17    17    17    56    60     7    78
#>  2     1 treatment     0    96    54    29   169    32    39    11    19    55
#>  3     1 treatment     1    14    52   182    26    12     7     6    37   274
#>  4     1 treatment     6    20    34    21    42     3    30    19     7    68
#>  5     1 treatment    18    30    15   139    22     4    10     5    32    19
#>  6     1 treatment     1    17    38   151    14     5    26    29    26    83
#>  7     1 treatment    24   178    10     8   498    21    26    33     8    26
#>  8     1 treatment     1    83    16    59    85     2    11    28    11    28
#>  9     1 treatment     2    24    48    13    27    17    51   194    28   225
#> 10     1 treatment     2    39    13     4    36    28    39   104     1    60
#> # … with 15,990 more rows