- Introduced by
- Arnold et al. (2011); Green & MacLeod (2016) for mixed-model extension
- Year
- 2011
- Type
- Simulation-based (Monte Carlo)
What does it do?
Simulation-based power analysis estimates the power and required sample size of a planned study by repeating the full analysis pipeline on artificially generated data.
Because it does not rely on closed-form equations, it can be applied to designs such as mixed models, cluster-randomised studies and non-standard outcomes, where analytical power formulas are unavailable or inadequate. Arnold et al. (2011) gave an overview of the approach for applied researchers, and the SIMR package by Green and MacLeod extended it to generalised linear mixed models.
The intuition behind the method
Think of it as running your planned study thousands of times on a computer before collecting a single real observation. Each virtual run generates fake data under the assumed effect size, fits the same statistical model you plan to use, and records whether the result would be declared significant. After thousands of runs the fraction of significant results is your estimated power. If that fraction is below the 80% target you increase the planned sample size and repeat until it is reached.
History
Classical power analysis derives required sample sizes from closed-form formulas tied to specific test statistics. As designs became hierarchical, generalised or multi-stage, such formulas became unavailable for many practically important cases. Arnold et al. (2011) gave an overview of Monte Carlo power estimation for applied researchers working with individual- and cluster-randomised designs. The SIMR package by Green and MacLeod then made simulation-based power available for generalised linear mixed models in R.
When to use it
Choose simulation-based power analysis when the planned design has no closed-form power formula, or when a standard formula does not match the analysis you will actually run. The approach is established for individual- and cluster-randomised designs (Arnold et al., 2011) and for generalised linear mixed models, including count outcomes with mixed effects (Green & MacLeod, 2016). Other designs, such as survival models with non-proportional hazards, mediation or moderation models, or designs with planned missing data, can in principle be simulated in the same way, but they are extensions beyond the methodological sources behind this page and must be validated by the user against the DGP and analysis they will actually use. Do not use it when a well-validated analytical power function exists, such as for a simple two-sample t-test, because the formula is more transparent and quicker. For cluster designs, power depends on the intraclass correlation and the number of groups. Kreft and DeLeeuw (1998) report that power grows with the intraclass correlation, especially for second-level effects and cross-level interactions, and that about 20 or more groups is sufficient for cross-level effects when first-level sample sizes are not too small. Simulation studies also show that, for a fixed total, more groups with fewer cases per group give greater power than fewer groups with more cases. Before relying on the results, check that the DGP matches plausible data, including distribution and correlation structure; that effect-size and variance inputs come from a pilot study or published estimates; and that the analysis is replicated in full. Use at least 1000 replicates, and 5000–10000 for final reporting.
Limitations and considerations
- The power estimate is conditional on the assumed DGP. If the simulated outcome family, residual variance or correlation structure differs from the real data, the estimate will mislead about the actual study.
- Each replicate refits the full model, so complex mixed or otherwise demanding models can make large replicate counts slow to run.
- Effect-size and variance inputs usually come from pilot data or prior literature, and their uncertainty carries directly into the power estimate.
- With fewer than 1000 replicates the Monte Carlo standard error is large enough to affect planning decisions near the 0.80 threshold.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Because each run repeats the planned analysis, including preprocessing and model-selection steps, the estimate reflects the pipeline that will actually be used rather than only the core test statistic.
- The method can be checked on simple designs first: Arnold et al. show that simulation reproduces conventional power estimates for simple randomised designs before it is extended to complex ones.
- The Monte Carlo standard error gives a direct indication of how precise the power estimate is for a given number of replicates.
- The data-generating process can be extended to non-normal outcomes and to complex designs and covariance structures, which analytical power formulas often cannot accommodate.
Applications
- Sample-size planning for cluster-randomised designs, where the number of clusters and the number of observations per cluster both affect power.
- Power planning for generalised linear mixed models with count outcomes, such as environmental monitoring data.
- Sample-size justification for intervention trials in child growth, such as the sanitation and nutrition examples used by Arnold et al.
How it works
How it works
The formula frames adequacy as a comparison of the planned design's estimated power with a target of 1 − β, conventionally 0.80. Power here is a property of the design, estimated by simulation, rather than a parameter tested against zero, so the target works as a planning criterion and not as the alternative in a conventional test of an effect. Because the simulation produces a proportion across runs, a point estimate and a binomial standard error can both be computed from it.
Formula
H_0:\;\text{Power} = 0 \quad H_1:\;\text{Power} \geq 1 - \betaIn each of B runs, a dataset is generated from the data-generating process (DGP), which encodes the assumed effect size, sample size and distributional form. The full planned analysis, including any preprocessing, is applied to that dataset, and the resulting p-value p_b is compared with α. The estimated power is the proportion of runs with p_b < α, which is the mean of the binary indicator values in the formula.
Formula
\widehat{\text{Power}} = \frac{1}{B}\sum_{b=1}^{B}\mathbf{1}\!\left[p_b < \alpha\right]The design is treated as adequately powered when the estimated power reaches 0.80, the target stated in the formula. Because the estimate is itself random, the standard error given in the formula should be reported with it. That standard error is a binomial approximation to the simulation noise. An estimate close to 0.80, relative to its standard error, does not settle the question; in that case, increase B until the uncertainty no longer straddles the target, or report the design as borderline. At least 1000 replicates is the stated minimum, and 5000–10000 is recommended for publication.
Formula
\text{Sufficient power if }\widehat{\text{Power}} \geq 0.80;\quad \text{SE}_{\widehat{\text{Power}}} = \sqrt{\dfrac{\widehat{\text{Power}}\,(1-\widehat{\text{Power}})}{B}}Common pitfalls
- Running fewer than 1000 replicates and treating a noisy power estimate near 0.80 as a firm result.
- Simulating only the core test while omitting preprocessing or model-selection steps that the real analysis includes.
- Taking effect sizes from small pilot studies without allowing for overestimation, which can make the planned sample size look more adequate than it is.
- Reporting the power point estimate without its Monte Carlo standard error.
- Using simulation for a design with a validated analytical formula, such as a simple t-test, where a closed-form calculation in G*Power is more transparent.
Frequently asked questions
How many simulation replicates do I need?
The page's stated minimum is 1000 replicates, and 5000–10000 is recommended for a publication-quality report. The Monte Carlo standard error is approximately sqrt(power × (1 − power) / B). At power = 0.80 this is about 0.013 for B = 1000 and about 0.006 for B = 5000, so more replicates tighten the estimate.
What is a data-generating process and why does it matter?
The DGP is the statistical model used to produce each synthetic dataset. It encodes the assumed effect size, residual variance, correlation structure and distributional family. If the DGP does not match the real data (for example, using normal errors when outcomes are count data), the power estimate will not reflect what the study will actually achieve.
When should I use analytical power analysis instead?
If the test has a well-validated closed-form power function, such as a two-sample t-test, a one-way ANOVA or a chi-squared test, the analytical formula (for example in G*Power) is usually the more transparent choice. Simulation adds computation and modelling assumptions, so it should be reserved for designs where analytical solutions are absent or inadequate.
Can I use simulation power analysis for very small samples?
You can simulate any planned sample size you specify, but very small samples make each simulated dataset highly variable. The DGP assumptions then have more influence, and pilot-based estimates are less stable. Interpret results from very small planned samples with caution and run sensitivity analyses over plausible effect sizes and variances.
Related methods
Sources
Arnold, B.F. et al. (2011). Simulation Methods to Estimate Design Power: An Overview for Applied Research. BMC Medical Research Methodology, 11, 94.
Open DOI referenceGreen, P. & MacLeod, C.J. (2016). SIMR: An R Package for Power Analysis of Generalized Linear Mixed Models by Simulation. Methods in Ecology and Evolution, 7(4), 493–498.
Open DOI referenceUsing Multivariate Statistics (6th Edition), p. ?