Simulation and Power Analysis Using R