R/generate_individuals.r
y_to_binary.Rd
Convert continuous trait to binary
y_to_binary(y, prevalence = NULL, threshold = NULL)
Phenotype vector
Disease prevalence. Default = NULL
Disease threshold Default = NULL
Vector of binary trait