Why Examine Operating Characteristics by Subgroup?
An overall operating characteristic can look acceptable while the analysis performs poorly for a prespecified group of patients. For example, a decision rule might have a reasonable overall false-positive rate but a substantially higher rate in a smaller subgroup. Likewise, an estimator may be nearly unbiased overall while tending to underestimate the target in one subgroup and overestimate it in another. Reporting subgroup-specific performance can expose these patterns.
The key is to evaluate performance conditional on subgroup membership, using a clear subgroup definition, a specified target, and the same simulation and analysis procedures that define the trial’s operating characteristics. These calculations assess how a procedure behaves within groups. By themselves, differences between subgroup summaries do not establish that treatment effects differ between groups.
Set Up the Subgroup Evaluation
Let \(r=1,\ldots,R\) index simulated trial replicates, and let \(g\) index a subgroup defined before examining trial outcomes. For each replicate, generate trial data under a specified scenario, apply the planned analysis, and record the subgroup-specific output. The subgroup definition, data-generating assumptions, prior, analysis model, decision rule, interval construction, and target estimand should all be fixed before summarizing results.
For a binary decision, let \(D_{rg}=1\) if replicate \(r\) meets the prespecified decision criterion for subgroup \(g\), and \(D_{rg}=0\) otherwise. The estimated decision rate is the fraction of simulated replicates that meet that criterion. If a favorable decision is being assessed when the subgroup target is truly null, this rate estimates the subgroup-specific false-positive rate under that scenario. It is not automatically a frequentist significance level: its value depends on the data-generating scenario, the prior, the analysis, and the decision rule.
The Monte Carlo standard error (MCSE) describes simulation noise in the estimated rate, assuming independent replicates generated under the same scenario. It is not a standard error for patient-level outcomes, nor does it account for uncertainty in the assumed data-generating scenario. If simulation replicates are dependent, the independent-replicate formula is not appropriate.
For an estimator \(\hat{\theta}_{rg}\) of a subgroup target \(\theta_g\), the estimated bias is the average estimation error across replicates. A positive value indicates average overestimation relative to the target; a negative value indicates average underestimation. If \([L_{rg},U_{rg}]\) is a reported interval for \(\theta_g\), estimated coverage is the fraction of replicates in which the interval contains the target. These are repeated-sampling properties, even when the intervals are Bayesian credible intervals.
Here \(I(\cdot)\) is 1 when its condition is true and 0 otherwise. The target \(\theta_g\) must be the estimand that the subgroup estimator and interval are meant to address. A coverage calculation against the wrong target can be numerically exact but scientifically meaningless.
How to Calculate and Interpret the Summaries
Define subgroup membership independently of the outcomes, and state the parameter or decision being evaluated within that group.
For each simulated trial, use the specified scenario and apply the planned analysis and decision or interval rule without changing them after seeing the subgroup results.
Calculate the decision fraction, average estimation error, or interval coverage using the subgroup-specific outputs from all replicates.
Give the replicate count, the estimated operating characteristic, its MCSE where appropriate, and the scenario and target to which it applies.
The rate formula follows directly from treating \(D_{rg}\) as a Bernoulli outcome across simulation replicates. If its probability is \(\pi_g\), the sample mean of \(R\) independent indicators has variance \(\pi_g(1-\pi_g)/R\). Replacing the unknown \(\pi_g\) with its estimate gives the displayed MCSE. The same reasoning applies to coverage indicators, with the estimated coverage replacing \(\pi_g\). Thus, an observed rate close to a target can still be imprecise when \(R\) is small.
For estimated bias, a simulation-based MCSE can be computed as the sample standard deviation of the replicate estimation errors divided by \(\sqrt{R}\). It describes how precisely the simulation estimates the mean error; it does not turn a particular estimated bias into proof that the analysis is biased in practice. The conclusion is conditional on the chosen data-generating assumptions.
Worked Example: A Null Decision Rate in Two Subgroups
Suppose 1,000 independent simulated trials are generated under a scenario in which the target treatment effect is zero in each of two prespecified subgroups, A and B. In every replicate, the analysis declares benefit for a subgroup if its posterior probability of a positive effect is at least 0.95. The decision is made in 180 replicates for A and 270 for B.
For A, the estimated decision rate is \(180/1000=0.180\), or 18.0%. Its estimated MCSE is:
For B, the estimated decision rate is \(270/1000=0.270\), or 27.0%. Its estimated MCSE is:
Because the target is null in both groups and the event is a declaration of benefit, these are estimated subgroup-specific false-positive rates under this particular scenario and decision rule. The values are not the posterior probabilities that the null is true, and the 0.95 posterior threshold does not imply a 5% false-positive rate. The simulation results suggest higher false-positive decision frequency in B, but MCSEs quantify only simulation noise and the comparison should be interpreted with the simulation design and any dependence between subgroup results in view.
Worked Example: Estimator Bias Within Each Subgroup
Consider 500 simulated trials under a scenario in which the target is \(\theta_g=2.0\) mmHg in both subgroups. The analysis produces a subgroup-specific estimate in each replicate. In subgroup A, the 500 estimates sum to 950 mmHg; in subgroup B, they sum to 850 mmHg. The sample standard deviations of the estimates across replicates are 4.0 mmHg for A and 5.0 mmHg for B.
The average estimate in A is \(950/500=1.90\) mmHg, so its estimated bias is:
The average estimate in B is \(850/500=1.70\) mmHg, giving:
Both averages are below the target in this simulation scenario. Approximate MCSEs for the estimated biases, using the stated standard deviations divided by \(\sqrt{500}\), are \(4.0/\sqrt{500}=0.179\) mmHg for A and \(5.0/\sqrt{500}=0.224\) mmHg for B. These quantify uncertainty from using a finite number of simulated trials to estimate mean error. The simulation does not show that the subgroup targets differ: both were set to 2.0 mmHg. It shows how this analysis procedure performed relative to that target under the specified scenario.
Worked Example: Repeated-Sampling Coverage by Subgroup
Suppose 400 simulated trials are generated under a scenario with a target of \(\theta_g=1.5\) percentage points in both groups. For each replicate, the analysis reports a 95% posterior credible interval for the subgroup target. The interval contains the true target in 366 trials for A and 340 trials for B.
The estimated coverage for A is \(366/400=0.915\), or 91.5%. Its MCSE is:
For B, coverage is \(340/400=0.850\), or 85.0%, with MCSE:
These estimates indicate that the nominal 95% posterior intervals covered the fixed target less often than 95% in this scenario, particularly in B. A 95% posterior credible interval has a posterior-probability interpretation conditional on the observed data and model; it is not guaranteed to cover the fixed true value in 95% of repeated simulated trials. The coverage estimates assess that repeated-sampling property under the specified scenario.
Diagnostics, Comparisons, and Limitations
A subgroup summary is useful only if the simulation supplies enough information to estimate it. Inspect subgroup sample sizes and event counts across replicates, not just the number of simulated trials. A nominally large \(R\) does not prevent unstable subgroup estimates if the subgroup is rare, outcomes are sparse, or many replicates have little or no usable subgroup information. Check for failed model fits, undefined estimates, and intervals that cannot be computed. State how such replicates were handled; silently dropping them can distort the reported rates, bias, and coverage.
Subgroup results should be compared on the same definitions and under the same scenario. A decision rate calculated using a subgroup-specific posterior threshold is not directly comparable with one calculated from a single overall trial decision unless the decision events are explicitly defined to be comparable. If a trial has only one overall go/no-go decision, that event is shared by all patients in that trial; assigning it separately to each subgroup does not create distinct subgroup-specific decision rates. To estimate subgroup-specific rates, define a subgroup-specific analysis output or decision rule and apply it consistently in every replicate.
A pooled summary can conceal differences, but not every overall operating characteristic is a simple weighted average of subgroup-specific quantities. For example, an overall estimator’s bias depends on how its target and estimator combine subgroup information. An overall trial-level decision rate is the probability of one defined trial-level event, not necessarily a prevalence-weighted average of separate subgroup decisions. State the overall estimand and decision event before making such a comparison.
A useful alternative is to report subgroup-specific results alongside the overall operating characteristics and, when relevant, a worst-case summary. The earlier material on Averaging Operating Characteristics Across Scenarios concerns averaging across scenarios; subgroup stratification instead conditions summaries on patient group within a scenario. Neither replaces the other. The earlier material on Worst-Case Operating Characteristics in Bayesian Trials provides a different summary across a prespecified set of conditions; a worst-case value can complement subgroup results but can hide which subgroup drives it.
Subgroup-specific operating characteristics also have limits. They are conditional on the subgroup definitions, trial design, analysis model, prior, scenario grid, and outcome assumptions used in the simulations. Narrow subgroups can yield unstable performance, while examining many subgroups increases the chance of highlighting random-looking differences. Prespecification and transparent reporting help distinguish planned diagnostics from exploratory analyses. Most importantly, a difference in subgroup-specific bias, coverage, or decision rate is a difference in operating performance for the simulated procedure; it is not, on its own, evidence that the clinical treatment effect differs across subgroups.
Common Pitfalls
- Calling a posterior threshold a false-positive guarantee. A posterior probability threshold of 0.95 does not ensure a 5% false-positive rate. Estimate that rate by simulating under a null scenario and applying the complete decision rule.
- Confusing credible probability with coverage. A 95% credible interval does not necessarily contain the fixed target in 95% of repeated trials. Calculate coverage across simulated replicates.
- Comparing unstable subgroup estimates as if they were precise. Report subgroup sample sizes, replicate counts, and MCSEs, and inspect missing or failed fits.
- Interpreting subgroup performance differences as treatment-effect differences. Bias, coverage, or decision-rate differences diagnose procedure performance under specified assumptions; they do not establish effect modification.
- Assuming an overall rate is the weighted average of subgroup rates. That identity depends on how the overall event and weights are defined. Do not apply it automatically to trial-level decisions.
Check Your Understanding
Answer each question using the definitions and calculations in this tutorial. Brief solutions follow the questions.
- In 800 independent simulated trials, a favorable decision occurs in 96 trials for a subgroup whose target is null. What is the estimated false-positive decision rate and its MCSE?
- Across 250 replicates, estimates for a subgroup target of 3.0 units sum to 725 units. What is the estimated bias?
- A nominal 90% interval contains the target in 171 of 200 simulated trials. What is the estimated coverage, and what does it describe?
- Why does a posterior probability threshold of 0.95 not by itself imply a 5% subgroup false-positive rate?
- When can an overall trial decision rate be interpreted as a weighted average of subgroup-specific decision rates?
Solutions. (1) The rate is \(96/800=0.120\), or 12.0%. Its MCSE is \(\sqrt{0.120(0.880)/800}=\sqrt{0.000132}\approx0.0115\), or 1.15 percentage points. (2) The mean estimate is \(725/250=2.90\) units, so bias is \(2.90-3.00=-0.100\) units. (3) Coverage is \(171/200=0.855\), or 85.5%. It estimates the repeated-sampling fraction of intervals containing the fixed target under the simulated scenario. (4) The threshold is a posterior probability condition conditional on observed data; the repeated-sampling false-positive rate depends on the data-generating process, prior, analysis, and full decision rule. (5) Only when the overall event and subgroup events are defined so that the overall rate is the corresponding weighted combination, with valid weights for the target population. A single shared trial-level decision is not automatically an average of subgroup-specific decisions.