get.linearly.independent(geno.matrix)
select.markers.for.pairscan
. It uses correlation between marker pairs to determine which markers are linearly independent. In the restricted space of genotype vectors, two markers will only be linearly non-independent if they have perfect correlation. This function finds the correlations between all pairs of makers. If any correlations are perfect, the first of the markers is picked to discard.This step is necessary because in the pair scan multiple markers are put into each regression model: The two markers being tested for main effects and interaction, along with any markers being used as covariates. If any markers are linearly dependentent, they do not add any information to the model and R discards them automatically. This filtering step avoids testing extra markers and ensures that the models returned do not have missing values.
select.markers.for.pairscan