A design effect of 2.95: what survey weights did to a smoking-cessation estimate

A 2026 survey of 7,183 residents of Chengdu reports a weighted quit-failure rate of 66.9 per cent. We rebuild its weights, reproduce its design effect of 2.95 and split it into weighting and clustering with fibub's survey weighting tool.

When a survey says “66.9 % of people who tried to quit smoking failed”, two different pieces of arithmetic stand behind it. One is weighting: the people interviewed are not a miniature of the city, so each answer counts for more or fewer residents. The other is the design effect, how much less precise a clustered, weighted sample is than a simple random one of the same size. A 2026 survey of 7,183 residents in Chengdu, published in Frontiers in Public Health, reports both: a weighted failure rate of 66.9 % with a design effect of 2.95 and an effective sample size of 312. This article rebuilds those numbers with the survey weighting tool, and splits the design effect into the part the weights cause and the part the clustering causes. For what it means for planning, see sample size; for the cross-tabulations that follow, cross-tab and chi-square.

The paper in brief

The team sampled Chengdu in four stages: all 23 districts and counties, three townships in each chosen with probability proportional to size, two communities in each township, 55 households in each community, and one resident aged 15 or over per household picked with a Kish table. That gave 7,183 usable interviews. Weights were built as the sampling weight times a non-response adjustment times a post-stratification factor on age and sex against the 2020 census, and they add to 18,047,490, Chengdu’s resident population aged 15 and over.

Among the 923 people who had ever tried to quit, 580 failed and 343 succeeded. The weighted failure rate is 66.9 % with a design-based standard error of 2.66 %, a design effect of 2.95 and an effective sample size of 312. The paper’s substantive findings are about who fails: younger smokers, heavier smokers, those without a firm intention to quit and those exposed to other people’s smoke.

Checked with the tools

All of this is a recomputation from figures stated in the paper. We did not get the data; we rebuilt a weight for every one of the 923 ever-quitters from the published margins, which is exactly what a reader with a photocopy of the tables can do.

Step 1: the design effect, from the paper’s own two numbers. A simple random sample of 923 people would estimate a 66.9 % rate with a standard error of √(0.669 × 0.331 / 923) = 1.549 %. The paper’s design-based standard error is 2.66 %. The design effect is the ratio of variances, (2.66 / 1.549)² = 2.949, and the effective sample size is 923 / 2.949 = 313. The paper reports 2.95 and 312. So those two numbers are internally consistent, and the 95 % interval around the headline is 61.7 % to 72.1 %, which the paper does not print.

Step 2: rebuild the weights. The paper gives, for each age group, how many ever-quitters were interviewed and what share of the weight they carry. Dividing one by the other gives the weight of each cell relative to an average respondent:

Age group Share of the 923 interviewed Share of the weight Weight of a respondent, failed / succeeded
15-35 13.1 % 29.7 % 2.19 / 2.67
36-55 31.9 % 32.8 % 1.00 / 1.12
over 55 55.0 % 37.5 % 0.66 / 0.70

A young ever-quitter counts for about three times as much as an older one. That is the whole reason the weighted failure rate (66.9 %) sits four points above the raw one (580 / 923 = 62.84 %): young smokers are under-represented in a household survey and more likely to relapse. Feeding these six cell weights into the tool returns a weighted failure rate of 66.90 %, as it must, and shows where the shift comes from.

Who the weights move: ever-quitters by ageWho the weights move: ever-quitters by age020406015-3536-55>55Age groupShare (%)share of the 923 respondentsshare of the weightfibub.com
Figure 1. The age mix of the 923 ever-quitters as interviewed, and as the published weights count them. The gap is what post-stratification to the 2020 census does, and it is why the weighted failure rate is four points above the raw one.

Step 3: post-stratify from scratch with the tool. Starting from equal weights and raking the 923 respondents to the age margins alone (29.71 %, 32.83 %, 37.46 %), the tool’s own post-stratification gives weights of 2.2665, 1.0306 and 0.6806 times the average, adding to exactly 18,047,490, and a weighted failure rate of 68.90 %. That is two points above the published 66.9 %, and the gap is informative: age alone would push the estimate further than the paper’s weights do, because the real weights also carry the sampling and non-response factors, which differ within each age group (notice how the “succeeded” column of the table above is slightly heavier than the “failed” one at every age).

Step 4: split the design effect. Kish’s design effect from unequal weights is n Σw² / (Σw)². On the six-cell weights it is 1.272, an effective sample size of 726. The published design effect is 2.949. Dividing one by the other leaves 2.32 for everything the weights do not explain, which is mostly clustering: the survey interviewed about 923 / 138 = 6.7 ever-quitters per sampled community. With deff = 1 + (m − 1)ρ, that implies an intra-cluster correlation of about ρ = 0.23 for quit failure within a community, a plausible value for a behaviour that travels in neighbourhoods and social circles.

So of the 611 respondents’ worth of precision lost (923 down to 312), roughly a quarter is the price of the weights and three quarters the price of sampling whole communities. Figure 2 puts that in the units a reader cares about: the margin of error on 66.9 % is ±3.0 points for a simple random sample of 923, ±3.4 with the weights, and ±5.2 as published.

What a design effect costs this surveyWhat a design effect costs this survey345671234Design effectMargin of error on 66.9 % (± %)simple random: n 923weights only: n 726as published: n 313fibub.com
Figure 2. The price of a design effect, worked out with the tool's maths: the margin of error on a 66.9 % estimate from 923 people, against the design effect. The marked points are a simple random sample, the weights alone, and the published figure.
Check Paper Our tool result
Design effect, quit failure 2.95 2.949 from the reported SE of 2.66 %
Effective sample size 312 313
Weighted failure rate 66.9 % 66.90 % from the rebuilt cell weights
Unweighted failure rate 580 of 923 62.84 %
95 % interval not printed 61.7 % to 72.1 %
Design effect from the weights alone not printed 1.272 (effective n 726)
Clustering share of the design effect not printed 2.32 of the 2.95, implying ρ ≈ 0.23

How we made the graphs

Both charts and every number above come from scripts/blog-figures/survey-weights-design-effect-smoking-cessation.mjs in fibub’s public code. It calls rake, kish, weightedPct and parseMargin from src/lib/sci/surveyw.ts, the maths behind the survey weighting tool.

The counts, weighted shares, standard error, design effect, effective sample size, weight total and sample structure are stated in the paper. The per-respondent weights are our reconstruction from those margins: they reproduce the published age shares and failure rate by construction, but they cannot show how weights vary inside a cell, so our 1.272 is a lower bound on the weighting design effect. The intra-cluster correlation is our inference from the two design effects and the average cluster size.

How we test the maths

On every change to fibub, tests/sci.mjs runs tests/sci-tools/survey-weighting.mjs, which pins this maths against an independent Python implementation:

  • Raking a 40-respondent example on three variables must give the same weights as a numpy iterative-proportional-fitting routine and as the raking calibration equations of Deville and Särndal solved with scipy.optimize.root (smallest weight 0.48163736, largest 2.17694145), with a Kish design effect of 1.2576859940 and an effective sample size of 31.80444101.
  • Post-stratification on one variable must be exact in a single pass, and every margin must be hit to within 10⁻¹³.
  • Raking to a population total of 5,000,000 with design weights must still reproduce the target total exactly and the same design effect.
  • New with this article: raking 923 respondents whose age shares are 13.11 %, 31.85 % and 55.04 % to margins of 29.71 %, 32.83 % and 37.46 % must give weights 2.2665, 1.0306 and 0.6806 times the average, a Kish design effect of 1.2667, and a weighted failure rate of 68.90 %; and the six-cell reconstruction must give a design effect of 1.2717 and a weighted rate of 66.90 %.

Check it yourself

The paper’s 923 rows are not something you can type, so here is the same mechanism on a 20-person stand-in (our own made-up rows, with roughly the paper’s age mix). On the survey weighting tool:

  1. In Respondents, paste this table (the first line is the header): ID, Age, Outcome then, one per line, R1, 15-35, failed; R2, 15-35, failed; R3, 15-35, quit; R4, 36-55, failed; R5, 36-55, failed; R6, 36-55, failed; R7, 36-55, failed; R8, 36-55, quit; R9, 36-55, quit; R10, >55, failed; R11, >55, failed; R12, >55, failed; R13, >55, failed; R14, >55, failed; R15, >55, quit; R16, >55, quit; R17, >55, quit; R18, >55, quit; R19, >55, quit; R20, >55, quit.
  2. Leave Design weight column on None (all equal), set Method to Post-stratification (first variable) and Weights add up to to Sample size.
  3. Set Variable 1 to Age and type the census-implied margins in its Population figures box, one per line: 15-35, 29.71, 36-55, 32.83, >55, 37.46.
  4. The weights come out as 1.9807 for the youngest, 1.0943 for the middle and 0.6811 for the oldest group, with a Design effect (Kish) of 1.203 and an Effective sample size of 16.63 out of 20.
  5. The Weighted percentages table lists every column: the Outcome row for “failed” reads 55.0 % in the Sample column and 58.7 % in the Weighted column, the same upward shift the real survey shows (our exact figure is 58.72 %).
  6. Switch Weights add up to to Population size and enter a population to see the weights scale to whole residents while the percentages and the design effect stay put.

What researchers can use it for

  • Recover a design effect from a published standard error in one line, and get the confidence interval a paper leaves out.
  • Rebuild the weights of someone else’s survey from its published margins, to see which subgroup is doing the work behind a weighted estimate.
  • Separate weighting from clustering before blaming your weights: in this survey the weights cost a quarter of the precision and the clustering three quarters.
  • Plan the next round. An intra-cluster correlation of about 0.23 and 6.7 interviews per community means more communities and fewer households each; feed that into sample size.
  • Check a weighted subgroup is not resting on a handful of people by reading the effective sample size rather than the raw count.

The fine print

  • Our per-respondent weights are a reconstruction from published margins, not the survey’s own weight file. They match the published age shares and failure rate by construction, so the 1.272 design effect is a floor, not an estimate of the real weight variation.
  • Kish’s formula treats the weights as fixed and ignores clustering; the paper’s 2.95 is a full design-based figure with 21 degrees of freedom. The split in Step 4 is an approximation that assumes the two effects multiply.
  • The intra-cluster correlation uses an average cluster size; real clusters vary, which usually inflates the design effect a little further.
  • We checked the arithmetic of a published estimate, not the survey’s fieldwork, its definition of a quit attempt or its regression findings.
  • Self-reported smoking and quit attempts are what they are: a weighting tool cannot repair a misremembered answer.

Sources

  • Bai Y., Ye X., Zhao Y., Wang R. and Jian X. (2026), Sociodemographic, motivational and secondhand smoke exposure factors associated with unsuccessful smoking cessation in a city in Southwest China: a population-based cross-sectional study, Frontiers in Public Health 14: 1972026, doi:10.3389/fpubh.2026.1972026. Licence CC BY 4.0, checked on the Frontiers article page and in the Crossref record (licence 'vor', 2026-11-24), 2026-11-24; no correction or retraction notice. Values used here, all stated in the paper: multi-stage sample of 23 districts, 3 townships each chosen with probability proportional to size, 2 communities each and 55 households per community; 7,371 questionnaires returned and 7,183 valid; 923 ever-quitters, of whom 580 were unsuccessful and 343 successful; weights = sampling weight x non-response adjustment x post-stratification on age and sex to the 2020 census, adding to 18,047,490; weighted unsuccessful cessation 66.9 % with a design-based standard error of 2.66 % (2.7 % in the abstract), a design effect of 2.95, an effective sample size of 312 and 21 design degrees of freedom; a median design effect of 1.66 (range 0.94 to 3.54) across regression coefficients; by age group (15-35, 36-55, over 55) the unweighted counts 102, 227 and 251 unsuccessful and 19, 67 and 257 successful, with weighted shares of 36.2, 36.9 and 26.9 % within unsuccessful quitters and 16.6, 24.6 and 58.8 % within successful ones; 874 of the 923 ever-quitters were men.
  • Methods: Kish, L. (1965), Survey Sampling, Wiley, and Kish (1992), Journal of Official Statistics 8: 183-200 (the design effect from unequal weights and the effective sample size); Deming, W. E. and Stephan, F. F. (1940), Annals of Mathematical Statistics 11: 427-444 (raking); Holt, D. and Smith, T. M. F. (1979), JRSS A 142: 33-46 (post-stratification). These are the methods the fibub survey weighting tool uses, checked in our tests against a separate numpy implementation and SciPy.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next