In this post I show how to do simulated-based power analyses that produce a power curve: the obtained power for a range of sample sizes.
A blog post on the metalog distribution using the rmetalog package.
Simulation-based power analyses make it easy to understand what power is: Power is simply counting how often you find the results you expect to find. Running simulation-based power analyses might be new for some, so in this blog post I present code to simulate data for a range of different scenarios.