Changing the form of anonymous functions for magrittr
Fixes to power simulation for implementation study