make.snp.dummy(data)
logic.bagging
nor logicFS
can handle missing values so that
the missing values need to be imputed (preferably before an application of make.snp.dummy
.ncol(data)
columns containing 2 dummy variables
for each SNP.
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. Alternatively, the three genotypes can be coded
by the number of minor alleles, i.e. by 0, 1, and 2.
For each SNP, two dummy variables are generated: