if (FALSE) {
ab()
n <- power <- vector()
for (j in 1:10)
{
z <- ab(fold=j*0.01)
n[j] <- z[1]
power[j] <- z[2]
}
plot(n,power,xlab="Sample size",ylab="Power")
title("SNP-BMI-T2D association in EPIC-Norfolk study")
}
Run the code above in your browser using DataLab