Effective sample size and weighting term of a weighted sample with three weight classes

NICE DSU Technical Support Document 18 gives the approximate effective sample size of a weighted population as the squared sum of the weights over the sum of the squared weights. The calculator holds three classes of respondents, each with one weight, in the layout of HE-FM-XSD-001, and the Excel Implementation takes a column of individual weights. Actual size over effective size is the weighting term, which equals 1 + CV_w^2 in HE-FM-DESE-002 when CV_w uses divisor n (derived, no mismatch on 100,000 random lists), so the last part recovers CV_w from it.

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
InputsDefinitionUnit
n_1Respondents in class 1, zero or morepeople
n_2Respondents in class 2, zero or morepeople
n_3Respondents in class 3, zero or morepeople
w_1Weight of each respondent in class 1, above zeroweight per respondent
w_2Weight of each respondent in class 2, above zeroweight per respondent
w_3Weight of each respondent in class 3, above zeroweight per respondent
Output
nTotal unweighted respondents, above zeropeople
n_wSquared sum of the weights over the sum of the squared weights, at most n (derived)people
D_wActual size over effective size, at least 1ratio
CV_wCoefficient 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.

    View source →

Canonical Identity

This formula is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/formula/effective-sample-size-and-weighting-term-of-a-weighted-sample-with-three-weight-classes

Effective sample size and weighting term of a weighted sample with three weight classes | HealthEconomics.wiki