make.snp.dummy {logicFS} | R Documentation |
Transforms SNPs into binary dummy variables
make.snp.dummy(data)
data |
a matrix containing only 1's, 2's and 3's (see details).
Each column of data corresponds to a SNP and each row to
an observation. |
make.snp.dummy
assumes that the homozygous dominant genotype
is coded by 1, the heterozygous genotype by 2, and the homozygous
recessive genotype by 3. For each SNP, 2 dummy variables are generated:
A matrix with 2*ncol(data)
columns containing 2 dummy variables
for each SNP.
Holger Schwender, holger.schwender@udo.edu