The R package simr has greatly facilitated power analysis for mixed-effects models using Monte Carlo simulation (i.e., hundreds or thousands of tests under slight variations of the data). The powerCurve function is used to estimate the statistical power for various sample sizes in one go. Since it runs serially, …
Continue reading: <a href=“https://www.r-bloggers.com/2023/06/ggplotting-power-curves-from-si …