The returned data contain no real participants. They are designed for examples and tests of every supported outcome family and both scan directions.
Value
A list of data.tables containing sample, phenotypes,
anchors, covariates, the joined data, and forward/reverse phenotype
metadata.
Examples
example <- phewas_example_data(n = 200)
names(example)
#> [1] "sample" "phenotypes" "anchors" "covariates"
#> [5] "data" "forward_metadata" "reverse_metadata"
head(example$data)
#> id pheno_binary pheno_continuous pheno_count pheno_ordinal
#> <char> <int> <num> <num> <ord>
#> 1: person_0001 1 1.1007047 2 low
#> 2: person_0002 0 0.8143231 1 low
#> 3: person_0003 0 -0.7085040 0 low
#> 4: person_0004 0 -0.2201467 2 low
#> 5: person_0005 0 -0.1375847 0 high
#> 6: person_0006 1 0.7995629 0 high
#> pgs endpoint_continuous endpoint_binary endpoint_count
#> <num> <num> <int> <num>
#> 1: -0.4561366 1.2394059 1 1
#> 2: 0.4580688 1.2864665 0 9
#> 3: -0.2480944 -0.8246440 0 0
#> 4: -1.9188118 -1.1791705 0 1
#> 5: -0.3100142 0.5714129 1 7
#> 6: 1.8012758 1.7733428 1 2
#> endpoint_ordinal age sex
#> <ord> <num> <fctr>
#> 1: severe 64.9 male
#> 2: moderate 57.8 female
#> 3: mild 37.0 female
#> 4: moderate 44.3 male
#> 5: mild 57.8 male
#> 6: severe 31.3 male