View source: R/generateExample.R
generateExample | R Documentation |
generateExample
creates simulated ICD9CM/ICD10CM, id.sex, and genotype data to test PheWAS methods. Requires the package MASS
.
generateExample(n=5000,phenotypes.per=10,hit="335")
n |
The number of individuals in the study. |
phenotypes.per |
The base number of phenotypes per individual. |
hit |
The phecode for which an artificial hit will be generated. |
The output from this function will be random results with a significant association found between the genotype data and the selected phecode. It does not represent actual treatment data, though some highly connected phenotypes can also have strong associations due to the data creation methods.
List with three named items:
id.vocab.code.count |
A data frame of columns id, vocabulary_id, ICD code, and count suitable for transformation by |
genotypes |
A data frame of columns id and rsEXAMPLE, suitable for use in |
id.sex |
A data frame of columns id and sex, suitable for use in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.