Why a Weighted Summary Needs Its Own Standard Error
Pattern-specific estimates answer questions about outcomes within dropout patterns. A population-level summary combines those estimates using the pattern proportions. Because both ingredients may be estimated, the uncertainty of the combined result is not generally the uncertainty of a pattern-specific mean, nor is it obtained by treating the weights as known.
Let \(G\) denote a participant’s dropout pattern, with \(K\) possible patterns. For pattern \(k\), let \(\pi_k=P(G=k)\) be its population proportion and let \(\mu_k\) be the outcome mean for that pattern under the analysis being performed. The pattern-weighted population mean is
In practice, the analysis uses estimates \(\hat{\pi}_k\) and \(\hat{\mu}_k\), giving \(\hat{\mu}=\sum_k\hat{\pi}_k\hat{\mu}_k\). This tutorial concerns the sampling uncertainty of this plug-in summary, conditional on the model and assumptions used to obtain its components. It does not determine whether a pattern-specific mean is identified or whether a particular missing-data assumption is credible.
Delta-Method Variance
The delta method approximates the variance of a smooth function of estimated parameters by linearizing that function near the estimates. Since the proportions sum to one, use \(K-1\) free weight parameters and define \(\pi_K=1-\sum_{j=1}^{K-1}\pi_j\). Write the parameter vector as \(\theta=(\pi_1,\ldots,\pi_{K-1},\mu_1,\ldots,\mu_K)\), and define \(h(\theta)=\sum_k\pi_k\mu_k\).
The derivative with respect to a free proportion \(\pi_j\) accounts for the fact that increasing it decreases \(\pi_K\). Thus \(\partial h/\partial\pi_j=\mu_j-\mu_K\), while \(\partial h/\partial\mu_k=\pi_k\). The gradient is therefore
If \(\hat{V}\) estimates the joint covariance matrix of \(\hat{\theta}\), the delta-method variance estimate is the gradient evaluated at the estimates, multiplied on both sides of \(\hat{V}\). The standard error is the square root of that variance estimate.
The joint covariance matrix matters. Estimating pattern proportions and means from the same participants can make them dependent. Even if they are estimated separately, their estimated means may be correlated through a shared model or shared data. Dropping covariance terms is justified only when the corresponding covariances are zero under the estimation design or an appropriate approximation.
Worked Example: Combining Joint Covariance Information
Worked Example: Combining Joint Covariance Information
Suppose a hypothetical analysis has two dropout patterns. The estimated proportion for pattern 1 is \(\hat{\pi}_1=0.60\), and the estimated means are \(\hat{\mu}_1=10.0\) and \(\hat{\mu}_2=14.0\) outcome units. Suppose the estimated joint covariance quantities are
\(\widehat{\operatorname{Var}}(\hat{\pi}_1)=0.0004\), \(\widehat{\operatorname{Var}}(\hat{\mu}_1)=0.09\), \(\widehat{\operatorname{Var}}(\hat{\mu}_2)=0.16\), \(\widehat{\operatorname{Cov}}(\hat{\pi}_1,\hat{\mu}_1)=0.001\), \(\widehat{\operatorname{Cov}}(\hat{\pi}_1,\hat{\mu}_2)=-0.002\), and \(\widehat{\operatorname{Cov}}(\hat{\mu}_1,\hat{\mu}_2)=0.01\). Find a delta-method standard error.
The weighted estimate is \(0.60(10.0)+0.40(14.0)=11.6\) outcome units. With \(\pi_2=1-\pi_1\), the gradient for \((\pi_1,\mu_1,\mu_2)\) is \((\mu_1-\mu_2,\pi_1,\pi_2)=(-4.0,0.60,0.40)\).
Expanding the gradient–covariance product gives the three variance contributions and the three covariance contributions:
Hence \(SE_{\Delta}=\sqrt{0.0708}=0.2661\) outcome units. Under a suitable large-sample normal approximation, a 95% interval is \(11.6\pm1.96(0.2661)\), or approximately \([11.078,12.122]\) outcome units. Its repeated-sampling interpretation relies on the model and sampling assumptions; it is not a probability statement about a fixed parameter after seeing this interval.
The inputs are assumed here to come from a joint covariance estimate appropriate to the same analysis. In particular, the example does not assume the covariance terms are zero. The negative covariance between the weight and the first mean reduces the variance contribution, while the other covariance terms increase it.
Why the Covariances and Weights Matter
For two patterns, the estimate can be written \(\hat{\mu}=\hat{\pi}_1\hat{\mu}_1+(1-\hat{\pi}_1)\hat{\mu}_2\). A first-order expansion around the true values shows the distinct sources of error:
The first term is error from estimating the pattern proportion; the remaining terms are error from estimating the pattern means. Taking the variance of this sum produces variance terms and covariances. This also explains why weight uncertainty has little first-order effect when the pattern means are nearly equal: its multiplier, \(\mu_1-\mu_2\), is then small. When the pattern means differ substantially, uncertainty about the pattern mix can matter considerably.
In a simple independent sample with observed outcomes in every pattern, there is a useful special case. If the pattern proportions are estimated by sample proportions and pattern means by within-pattern sample means, the weighted estimate equals the overall sample mean. Its sampling variance includes variation both within and between patterns. If instead pattern counts are fixed by design and inference conditions on those counts, the pattern proportions are fixed for that calculation, and only the within-pattern mean uncertainty contributes. These are different sampling setups, not competing formulas for the same setup.
Worked Example: Conditional and Unconditional Sampling
Worked Example: Conditional and Unconditional Sampling
Consider hypothetical data from \(n=100\) participants, with 60 in pattern 1 and 40 in pattern 2. Suppose the observed outcome means are 10 and 14 units, and the within-pattern sample standard deviations are \(s_1=2\) and \(s_2=3\) units. Assume independent participants and that these outcomes are observed for all participants in this illustration.
The weighted mean is \(0.60(10)+0.40(14)=11.6\) units. If inference conditions on the two pattern counts, the estimated variance from the pattern means is
so the conditional standard error is \(\sqrt{0.0600}=0.2449\) units. This calculation treats the observed pattern proportions as fixed.
For an independent sample in which the pattern proportions are estimated from the same 100 participants, the weighted mean is the overall sample mean. Its estimated variance is the overall sample variance divided by \(n\). The within-pattern sum of squares is \(59(2^2)+39(3^2)=587\). The between-pattern sum of squares is \(60(10-11.6)^2+40(14-11.6)^2=384\). Therefore
The larger standard error includes the variability associated with the random pattern composition in this sampling setup. This calculation is valid here because the example assumes an independent sample and an observed outcome for every participant; it should not be carried over uncritically to a setting where pattern-specific means are fitted using a model for unobserved outcomes.
Bootstrap Standard Errors
A bootstrap estimates sampling variability by repeatedly resampling the observational units and recomputing the statistic. For each of \(B\) replicates, calculate the pattern proportions, refit or recompute the pattern-specific means, and form the weighted summary \(\hat{\mu}^{*(b)}\). The bootstrap standard error is the sample standard deviation of those replicate summaries:
Resampling must match the sampling design and repeat the steps that produced the original estimate. With independent participants sampled from a population, resample participants and recalculate both the weights and means. If the design fixes pattern counts, a stratified resampling scheme within patterns may be appropriate for inference conditional on those counts. Resampling pattern-specific estimates while holding estimated weights fixed omits weight uncertainty; resampling only fitted means may also miss their dependence on the weights.
Worked Example: Calculating a Bootstrap Standard Error
Suppose six illustrative bootstrap replicates of a weighted summary, in outcome units, are 11.523905, 11.600000, 11.800000, 12.200000, 12.400000, and 12.476095. Their mean is 12.000000. The deviations from that mean are approximately \(-0.476095,-0.400000,-0.200000,0.200000,0.400000,0.476095\).
The sum of squared deviations is approximately \(0.853333\) outcome-units squared. Using \(B-1=5\) in the sample variance,
This arithmetic illustrates the standard-error calculation, not a reliable analysis based on only six replicates. In real work, many more replicates are generally needed to make Monte Carlo error small, and each replicate must successfully reproduce the intended estimation procedure. Retain precision through the square root; rounding the variance first can change the reported standard error.
Choosing and Checking an Approach
The delta method is often convenient when the estimator and a reliable joint covariance matrix are available. It is fast and makes the roles of the weights, means, and covariances explicit. The bootstrap is useful when the estimator is a complicated function of fitted pattern-specific models or when deriving the joint covariance is difficult. It can reflect nonlinearity in the estimator, but it cannot repair an inappropriate model, an invalid resampling design, or a lack of information in a sparse pattern.
Before interpreting either standard error, check the following:
- Weight definition and sum. Confirm that the estimated pattern proportions correspond to the target population and sum to one. If one pattern is omitted, the remaining weights must be normalized only when that is part of the intended estimand.
- Joint uncertainty. Check whether the covariance calculation includes estimated weights, pattern means, and their dependence. A covariance matrix for the means alone is not enough when the weights are also estimated.
- Pattern support. Very small pattern samples can produce unstable means or model fits. In bootstrap replicates, some patterns may be absent, causing a fit or the weighted summary to fail.
- Resampling design. Decide whether the target sampling scheme treats pattern counts as random or fixed. The resampling scheme must reproduce that choice and any clustering or stratification in the design.
- Approximation quality. Strong skewness, boundary estimates, or a highly nonlinear summary can make a symmetric normal approximation based on the delta method unreliable. Bootstrap replicates should also be inspected for outliers, failures, or a distribution very different from the original estimate.
A standard error describes sampling variation under the stated model and design. It does not measure uncertainty about the assumptions that justify the pattern-specific means, nor does it account automatically for misspecification. A small standard error can therefore accompany a result that is highly sensitive to the assumptions used to estimate an unobserved outcome.
Common Pitfall and Practical Limitations
Wrong reasoning: “The pattern means have standard errors, so I can multiply each by its weight, combine those standard errors, and ignore the weights because they add to one.” This is not generally correct. The weights may be estimated, the means may be correlated, and the uncertainty of a sum depends on covariance as well as on marginal variances.
Correction: Define the complete estimator first, then use a joint covariance calculation or a bootstrap that recomputes the complete estimator. Treat weights as fixed only when they are fixed by the design or when the inferential target explicitly conditions on them. In a fitted pattern-mixture analysis, the resulting uncertainty remains conditional on the model and assumptions used to estimate the pattern-specific quantities.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- For two patterns, what is the derivative of the weighted mean with respect to the free weight \(\pi_1\), when \(\pi_2=1-\pi_1\)?
- If the pattern-specific means are equal, what happens to the first-order contribution from uncertainty in the pattern proportion?
- Why can a bootstrap that holds estimated pattern weights fixed understate uncertainty in a setting where pattern proportions are estimated from the sample?
- In the 100-participant example, why does the conditional standard error differ from the standard error based on the overall sample variance?
- Name two diagnostics that are important when using a bootstrap for a pattern-weighted summary.
Solutions. (1) The derivative is \(\mu_1-\mu_2\), because increasing \(\pi_1\) decreases \(\pi_2\) by the same amount. (2) The contribution is zero to first order: the weight-error term is \((\mu_1-\mu_2)(\hat{\pi}_1-\pi_1)\), which vanishes when the means are equal. (3) It omits variation in the estimated weights and may omit covariance between weights and means. (4) The conditional calculation treats pattern counts as fixed; the overall-sample calculation includes random variation in pattern composition. (5) Suitable answers include checking for absent patterns or failed fits, examining extreme replicate estimates, and confirming that the resampling scheme matches the design and recomputes both weights and means.