View source: R/generate_individuals.r
y_to_binary | R Documentation |
Convert continuous trait to binary
y_to_binary(y, prevalence = NULL, threshold = NULL)
y |
Phenotype vector |
prevalence |
Disease prevalence. Default = NULL |
threshold |
Disease threshold Default = NULL |
Vector of binary trait
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.