Signature
n = n_1 + n_2 + n_3; n_w = (n_1 * w_1 + n_2 * w_2 + n_3 * w_3)^2 / (n_1 * w_1^2 + n_2 * w_2^2 + n_3 * w_3^2); D_w = n / n_w; CV_w = sqrt(max(D_w - 1, 0))
| Inputs | Definition | Unit |
|---|---|---|
n_1 | Respondents in class 1, zero or more | people |
n_2 | Respondents in class 2, zero or more | people |
n_3 | Respondents in class 3, zero or more | people |
w_1 | Weight of each respondent in class 1, above zero | weight per respondent |
w_2 | Weight of each respondent in class 2, above zero | weight per respondent |
w_3 | Weight of each respondent in class 3, above zero | weight per respondent |
n | Total unweighted respondents, above zero | people |
|---|---|---|
n_w | Squared sum of the weights over the sum of the squared weights, at most n (derived) | people |
D_w | Actual size over effective size, at least 1 | ratio |
CV_w | Coefficient of variation of the weights with divisor n (derived) | ratio |
Function
Design effect of a clustered or weighted sample and the effective sample size it implies
Maps the variance of an estimate under a complex sample, or the cluster size, intracluster correlation and survey weights behind that variance, to the design effect, its square root, the effective sample size and the sample size a precision target needs. The simple random sample variance of a proportion is the square of SE_p in HE-FM-BINOM-004, and the independence assumption of a binomial count, HE-AS-BINOM-002, fails under clustering. An interval around a survey estimate is HE-FM-AN-001 with the inflated standard error. A beta distribution for a clustered survey proportion is HE-FM-BETA-003 with that inflated standard error, and its parameters then sum to the effective sample size minus 1 (derived), so neither is restated here. The prevalence itself under survey weights is HE-FM-XSD-001. Notation follows the Design Effect article.
Try this function
Implementations
Excel
Effective sample size and weighting term from a column of weights
With individual weights in a range named RespondentWeights, the three formulas fill cells named WeightedEffectiveSize, WeightingTerm and WeightCoefVariation. SUM, SUMSQ and COUNT ignore blank and text cells, so a missing weight drops that respondent from all three. An empty range returns #DIV/0!.
=SUM(RespondentWeights)^2/SUMSQ(RespondentWeights); =COUNT(RespondentWeights)/WeightedEffectiveSize; =SQRT(MAX(WeightingTerm-1,0))
Assumptions
Weights fixed and known or uncorrelated with the outcome
TSD 18 states that the approximation is accurate only if the weights are fixed and known, or uncorrelated with the outcome. In a matching-adjusted indirect comparison neither holds, and it says the value is then likely to underestimate the true effective sample size. A small value still signals highly variable weights and a possibly unstable estimate, and TSD 18 asks for the distribution of weights to be examined directly.
Weighting term covers unequal weights only
n_w and D_w contain no cluster information, so a clustered sample also needs the first part of HE-FM-DESE-002. Multiplying every weight by the same constant leaves n_w and D_w unchanged (derived), so only relative weights matter.
Worked examples
Three illustrative classes of 200 respondents with weights 0.5, 1 and 1.5
The squared sum of the weights is 360,000 and the sum of the squared weights is 700, so 600 respondents carry the information of 514.29 unweighted respondents. The weighting term of 1.1667 corresponds to a CV_w of 0.4082, close to the 0.4 in the article's example.
n_1 = 200; n_2 = 200; n_3 = 200; w_1 = 0.5; w_2 = 1; w_3 = 1.5; n = 600; n_w = 514.29; D_w = 1.1667; CV_w = 0.4082
Equal weights leave the effective sample size at the actual size
With every weight equal to an illustrative 2, the effective size equals the 600 respondents and the weighting term is 1. The case checks an implementation, and the scale of the weight has no effect.
n_1 = 200; n_2 = 200; n_3 = 200; w_1 = 2; w_2 = 2; w_3 = 2; n = 600; n_w = 600; D_w = 1; CV_w = 0
Common errors
Sum of the weights reported as the effective sample size
The sum of the weights depends on how they are scaled. Doubling every weight in the first worked example makes it 1,200, while the effective size stays 514.29 (derived). TSD 18 states that weighting always reduces the effective sample size, and n_w cannot exceed n (derived).
Weighting term applied again to a measured design effect
A design effect measured from design-based variances may already include unequal weighting. NCHS says its recommended SUDAAN option measures stratification and clustering together with unequal weighting. Multiplying an illustrative measured 1.95 by a weighting term of 1.1667 would report 2.275 and count the weights twice (derived).
Sources
NICE DSU Technical Support Document 18 on the effective sample size of a weighted population
Phillippo DM, Ades AE, Dias S, Palmer S, Abrams KR, Welton NJ. NICE DSU Technical Support Document 18: Methods for population-adjusted indirect comparisons in submissions to NICE. Decision Support Unit, ScHARR, University of Sheffield; 2016. Section 2.2.1, Matching-Adjusted Indirect Comparison (MAIC), equation 7 prints the approximation suggested by Signorovitch and colleagues and says when it is accurate. The glossary defines the effective sample size and says that weighting always reduces it.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
