misc. functions for sample size and power calculations