Collection of power calculation functions in R