y_to_binary: Convert continuous trait to binary

View source: R/generate_individuals.r

y_to_binaryR Documentation

Convert continuous trait to binary

Description

Convert continuous trait to binary

Usage

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


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.