draw_sex {simfam} | R Documentation |
Draw sex values randomly for a list of individuals
Description
Each individual has their sex drawn between male and female with equal probability. Sex is encoded numerically following the convention for plink FAM files (see below).
Usage
draw_sex(n)
Arguments
n |
The number of individuals. |
Value
The length-n
vector of integer sex assignments: 1L
corresponds to male, 2L
to female.
See Also
Plink FAM format reference: https://www.cog-genomics.org/plink/1.9/formats#fam
Examples
draw_sex( 10 )
[Package simfam version 1.1.6 Index]