Multilevel Bootstrap Simulation

Statistics
Introduced by
Efron (1979); multilevel extensions developed through 1980s–2000s
Year
1979 (bootstrap); multilevel variants c.1990s
Type
resampling / simulation
Family
Bayesian / computational

What does it do?

Multilevel bootstrap simulation is a resampling method for clustered or hierarchically structured data.

It keeps the nested structure of the original data in each bootstrap replicate: clusters (for example schools or hospitals) are drawn first, and observations are then drawn within each selected cluster. The replicate datasets therefore carry the same multilevel organisation as the observed data.

The intuition behind the method

An ordinary bootstrap resamples individual rows without regard to group membership. For nested data, such as students within classrooms or patients within clinics, this breaks the clustering and tends to understate variability at the cluster level. The multilevel version resamples the clusters first and then the observations inside each drawn cluster, so that both between-cluster and within-cluster variation enter the bootstrap distribution.

History

Efron (1979) introduced the general bootstrap as a way to estimate the sampling distribution of a statistic from the observed data without a parametric model. Davison and Hinkley (1997) present bootstrap methods and their applications in book form. Extensions to clustered and multilevel data followed, including residual and wild cluster bootstrap variants for regression with clustered errors; the dating of these variants is approximate.

When to use it

Choose multilevel bootstrap simulation when the data are clustered or nested and you need standard errors or confidence intervals for an estimand that spans levels, such as an intraclass correlation, a random effect variance, or a fixed effect from a mixed model, and you prefer not to rely on asymptotic normality. It is an alternative to asymptotic approximations when those are doubtful for a moderate number of clusters. Do not use it as a replacement for a correctly specified multilevel model: the bootstrap quantifies sampling uncertainty around an estimate but does not specify the data-generating mechanism. If you need a posterior distribution, a Bayesian model is the appropriate tool. Be cautious when the number of top-level clusters is very small (as a rule of thumb, fewer than about 10–15), because the bootstrap distribution over clusters is then coarse. In regression settings with few clusters, wild cluster bootstrap variants (Rademacher, Mammen or Webb six-point weights) are available and the Webb scheme has been suggested to improve inference in that case.

Limitations and considerations

  • Needs a reasonable number of top-level clusters: with few clusters the set of possible cluster draws is small, and the bootstrap distribution is coarse and discrete.
  • Refitting the model B times (typically 1000 to 5000 replications, as above) can be slow for large datasets or complex mixed models.
  • Describes sampling variability around the estimate; it does not model the data-generating process and does not supply a posterior distribution.
  • The choice of what to resample (clusters only, clusters and observations, or residuals) changes the bootstrap distribution, so it should be stated and justified.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Because whole clusters are drawn, the dependence among observations within a cluster is kept in every replicate dataset.
  • Makes no distributional assumption about the sampling distribution of the estimand, so it can be applied to statistics without a closed-form variance.
  • Wraps around any fitting procedure: the model is refitted on each replicate, so the model itself does not need to be modified.
  • The two-stage draw is simple to describe once the levels are identified, and the same draw is repeated B times.

Applications

  • Confidence intervals for intraclass correlation coefficients in clustered studies.
  • Uncertainty for random effect variances from linear mixed models fitted to data with few clusters.
  • Non-parametric inference for fixed effects in generalised linear mixed models.
  • Simulation-based power and sample size checks for clustered randomised trials.

How it works

How it works

1

Identify the hierarchical structure of the data: how many levels there are (for example, observations nested in groups in a two-level design), which units define each level, and which estimand depends on which level. This fixes how many resampling stages are needed.

2

At the highest level, draw clusters with replacement. With J groups in the original data, draw J groups with replacement, so some groups appear more than once and others not at all. This stage carries the between-cluster variability.

3

This page describes case-based two-stage resampling: after the clusters are drawn, redraw observations with replacement from each selected cluster's original data. The draw is conditional on the clusters already selected, so the two stages are sequential rather than independent. It carries the within-cluster variability. A residual cluster bootstrap (new response equal to fitted value plus resampled residuals) is a separate scheme; it is not well-defined when clusters are unbalanced, because residuals from one cluster cannot easily be assigned to a cluster of different size. Whichever scheme is used, report it.

4

Fit the target model or compute the target statistic on each replicate dataset to obtain theta-star. Repeat the two resampling stages and the refit a large number of times, typically B = 1000 to 5000, to build the bootstrap distribution. Refits of mixed models can fail to converge, especially for random effect variances; flag or discard such replicates and report how many were affected.

Formula
\hat{\theta}^* = f(\mathbf{y}^*)
5

Summarise the B bootstrap estimates as a bootstrap standard error (the standard deviation of the B values of theta-star), a percentile interval (the lower and upper quantiles of theta-star at the chosen level), or a bias-corrected and accelerated (BCa) interval. The method does not assume a parametric form for the sampling distribution, but the reliability of the intervals depends on B and on the number of top-level clusters. Choose B large enough that the interval endpoints are stable when the procedure is repeated.

Common pitfalls

  • Resampling only observations and ignoring the cluster level, which understates between-cluster uncertainty.
  • Using too few replications for the chosen interval type; percentile and BCa intervals have unstable endpoints when B is low.
  • Applying the method to a very small number of top-level clusters (for example 5 schools), where the bootstrap distribution over clusters is degenerate.
  • Reporting a bootstrap confidence interval for a random effect variance as if it were a Bayesian credible interval; the two have different interpretations.
  • Using a resampling scheme that does not match the clustering structure of the fitted model, so the replicates do not reflect the structure the model assumes.
  • Ignoring non-converged refits, which can silently bias the bootstrap distribution of variance components.

Frequently asked questions

How is the multilevel bootstrap different from an ordinary bootstrap?

An ordinary bootstrap resamples rows without regard to group membership, which breaks the cluster structure and misrepresents between-cluster variability. The multilevel bootstrap resamples clusters first and then observations within clusters, so each replicate dataset has the same nested structure as the original.

How many bootstrap replications do I need?

A common range is B = 1000 to 5000. Standard errors usually stabilise with fewer replications than interval endpoints do, and BCa intervals are typically run with more. There is no fixed rule: repeat the analysis with a different random seed and increase B until the standard error or interval endpoints no longer change materially.

Can I use this method with only a few clusters?

The multilevel bootstrap becomes unreliable when the number of top-level clusters is small, roughly fewer than 10–15 as a rule of thumb. With only a handful of clusters the bootstrap distribution over clusters is very coarse, and intervals can under-cover; check this by simulation for your specific design. Alternatives include wild cluster bootstrap variants (for example Webb six-point weights), a parametric bootstrap, or Bayesian posterior simulation.

Should I resample cases or residuals?

Case resampling, which redraws whole observations, makes the fewest assumptions about the model form. Residual resampling depends on the fitted model being correctly specified, and a residual cluster bootstrap is not well-defined when clusters are unbalanced. For multilevel data, the choice should follow the structure of the fitted model, with case-level resampling at each level as the usual starting point.

Is the multilevel bootstrap Bayesian?

No. The multilevel bootstrap is a resampling method that approximates the sampling distribution of an estimator; it does not require or produce a posterior distribution. It can be used alongside Bayesian models, for example to study by simulation the frequentist coverage of credible intervals, but the method itself is not Bayesian.

Related methods

Sources

  1. Efron, B. (1979). Bootstrap methods: Another look at the jackknife. The Annals of Statistics, 7(1), 1–26.

    Open DOI reference
  2. Davison, A. C. & Hinkley, D. V. (1997). Bootstrap Methods and their Application. Cambridge University Press.

    ISBN: 978-0521574716