Convert continuous trait to binary

y_to_binary(y, prevalence = NULL, threshold = NULL)

Arguments

y

Phenotype vector

prevalence

Disease prevalence. Default = NULL

threshold

Disease threshold Default = NULL

Value

Vector of binary trait