Usage
CoreSetterCombined(genos=NULL, size=NULL, criterion = "HET", save = NULL, power = 10, permutations = 100, print = TRUE, mat = NULL)
Arguments
genos
A matrix of genotypes, where each column is one individual, each row is one marker, and marker values are 1, 0, or -1, or NA, where 0 represents a heterozygous marker, and NA represents missing data. Note that this coding is different from the earlier SubsetterCombinedPIC and SubsetterCombinedMTK, which cannot handle heterozygous markers. All data in this matrix must be numeric.
size
The desired subset size.
criterion
The criterion to be used for comparing subsets (HET or MTK).
save
A list of genotype names, corresponding to the column names in the genotype matrix, that will not be eliminated.
power
The transformation that should be made to the kinship matrix, if the MTK criterion is used. If power=1, the kinship matrix is not transformed, if power=2, the kinship matrix is squared, etc. When the power is higher, this function preferentially eliminates genotypes that are closely related to other genotypes in the population.
permutations
The number of random subsets to improve.
print
If TRUE, this function prints the Heterozygosity or MTK of the best subset identified.
mat
A kinship matrix, if one has already been computed for the population. If a kinship matrix is included, the "genos" argument may be left empty.