References: (For both, see the section for logistic regression. The second one is very clear about options available.
http://www.gpower.hhu.de/fileadmin/redaktion/Fakultaeten/Mathematisch-Naturwissenschaftliche_Fakultaet/Psychologie/AAP/gpower/GPower31-BRM-Paper.pdf
http://www.mormonsandscience.com/gpower-guide.html