Yes, you right. I didn't put it for make the post shorter. Do you know a source where i can confirm my formula? the package gwasurvivr uses almost the same thing:
MAFSNP1 <- mean(SNP1, na.rm=T) * 0.5
• 0 views
•
link
Why not use plink to calculate the frequency? It would be a lot faster than R.