# A focused Monte Carlo search can set sample size for network models

- **Date:** 1 Jun 2026
- **Journal:** Psychological Methods
- **DOI:** https://doi.org/10.1037/met0000555
- **Paper:** https://doi.org/10.1037/met0000555
- **Free copy:** https://doi.org/10.1037/met0000555
- **Tags:** #methods #cognition
- **Open science:** Open access (hybrid)

## Quick

Network studies can get a sample-size suggestion from a simulation that focuses on the most promising sizes. On one common model, that suggestion stayed near a known benchmark.

- Automated search over candidate sizes
- User supplies a performance target
- Available as the powerly package

## Findings

The routine needs a hypothesized network, a performance goal, and a second goal for how reliably that performance should be hit, then concentrates its simulations on the sample sizes that look most relevant. For Gaussian graphical models, the advice sat on average within three cases of a reference size.

- Inputs are a hypothesized network or its desired features, a performance target such as sensitivity of 0.6, and a certainty target such as probability 0.8.
- It simulates selected sample sizes, fits a curve across the candidate range, and uses stratified bootstrapping to quantify uncertainty.
- Performance was evaluated for the Gaussian graphical model, and the approach can extend to other models.
- Suggested sizes landed, on average, no farther than three cases from a benchmark, and the largest standard deviation was 25.87.
- The method is implemented in the R package powerly on GitHub and CRAN.

## Study details

- **Approach:** Not reported
- **Participants:** Not reported
- **Design:** Computational · Cross-sectional
- **Effect size:** Not reported
- **Significance:** Not reported

## Paper

**Title:** A general Monte Carlo method for sample size analysis in the context of network models.

We introduce a general method for sample size computations in the context of cross-sectional network models. The method takes the form of an automated Monte Carlo algorithm, designed to find an optimal sample size while iteratively concentrating the computations on the sample sizes that seem most relevant. The method requires three inputs: (1) a hypothesized network structure or desired characteristics of that structure, (2) an estimation performance measure and its corresponding target value (e.g., a sensitivity of 0.6), and (3) a statistic and its corresponding target value that determines how the target value for the performance measure be reached (e.g., reaching a sensitivity of 0.6 with a probability of 0.8). The method consists of a Monte Carlo simulation step for computing the performance measure and the statistic for several sample sizes selected from an initial candidate sample size range, a curve-fitting step for interpolating the statistic across the entire candidate range, and a stratified bootstrapping step to quantify the uncertainty around the recommendation provided. We evaluated the performance of the method for the Gaussian Graphical Model, but it can easily extend to other models. The method displayed good performance, providing sample size recommendations that were, on average, within three observations of a benchmark sample size, with the highest standard deviation of 25.87 observations. The method discussed is implemented in the form of an R package called powerly, available on GitHub and CRAN.

Permalink: https://instapsych.yetanotherchris.dev/#/p/a-focused-monte-carlo-search-can-set-sample-size-for-network-models

