Just like the web-based tool in the above link does, we provide some parameters then we get power and sample size estimates under different genetic models. But I want to know the formula behind these calculations. I searched for literature but got no really helpful paper/tutorial. Could you point me to some references? Thank you very much.
Elsewhere on that same website (http://pngu.mgh.harvard.edu/~purcell/gpc/), there is a link to this publication (http://bioinformatics.oxfordjournals.org/content/19/1/149.full.pdf+html). Perhaps that is a good starting point?