Stepwise regression on a snpMatrix

cond.best(X, Y, best = NULL, stepwise.p.thr = 0.001,
  stepwise.max.predictors = NA, ...)

Arguments

X

snpMatrix object

Y

phenotype vector

best

SNPs chosen so far, NULL if none

stepwise.p.thr

maximum p value to continue adding predictors

stepwise.max.predictors

maximum predictors to choose, NA if continue until stepwise.p.thr is met

...

arguments passed to snp.rhs.test

Value

new predictor, NULL if none found that meets conditions

Details

Calls snp.rhs.test to find next best predictor to add, possibly given a list of existing chosen predictors.