GWAS.utils icon indicating copy to clipboard operation
GWAS.utils copied to clipboard

Add max_iter to while condition in eff_nbr_tests

Open sinarueeger opened this issue 5 years ago • 0 comments

Something like

eff_nbr_tests <- function(..., max_iter = 100)
{
...
  K <- 1
  while (sum.tp / sum(svd.data$d) < 0.995 & K < k_iteration) {
    zhc.correction <- zhc.correction + 1
    sum.tp <- sum.tp + svd.data$d[zhc.correction]
    K <- K + 1
  }
if(K == max_iter) message("max_iter reached, but ")

}

sinarueeger avatar Apr 01 '19 08:04 sinarueeger