pwrttest function

Power Analysis for One-/Two-Sample and Paired t Tests