TriaLab Power Studio · Method
Survey: a one- or two-stage cluster sample (variance components)
Sizes the first stage of a cluster survey — how many districts, schools or health centres to sample — once the number of households, pupils or patients to take within each is fixed, from the variance of the cluster totals and the variance within clusters, so that a total, a mean or a ratio is estimated to within a relative error.
Also known as: two-stage cluster sampling, multistage survey, one-stage cluster sampling, household survey, primary sampling units, Levy and Lemeshow.
Maturity
Beta: 4 published examples from Levy & Lemeshow 2008 reproduce on every build; a second independent publication is wanted before the label becomes Validated (ADR-0001 §58). The catalogue’s row says which source is sought.
What it solves for
- Precision: offered.
- Sample size: not offered — This design estimates a total, a mean or a ratio and runs no hypothesis test, so there is no power to solve for; the Precision target sizes the interval.
- Power: not offered — This design estimates a total, a mean or a ratio and runs no hypothesis test, so there is no power to solve for; the Precision target sizes the interval.
- Detectable effect: not offered — This design estimates a total, a mean or a ratio and runs no hypothesis test, so there is no power to solve for; the Precision target sizes the interval.
- Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
- Duration: not offered — This design has no time axis.
Size axes:
- Clusters sampled (m) (
clusters), Count
Inputs
Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.
Common to every method
- Significance level (alpha) (
alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention. - Target power (
power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.
The method’s own
- What is estimated (
estimate): a choice; defaulttotal_or_meanA total or a mean (per cluster or per listing unit — the relative error is the same), or a ratio of two totals such as the proportion of patients referred. For a ratio, enter the ratio’s variance components (σ₁R², σ₂R²).total_or_meanA total or a mean: Levy & Lemeshow’s relations (10.6) and (10.16).ratioA ratio: Relations (10.7) and (10.17), with the ratio’s variance components.
- Clusters in the population (M) (
clusters_population): a number, at least 2; default 100 How many first-stage clusters the sample is drawn from — the health centres of a region, the enumeration areas of a district. - Variance of the cluster totals (σ₁²) (
variance_between): a number, above 0; default 1 How much the clusters’ totals differ from one another — Levy & Lemeshow’s σ²₁ₓ, or σ²₁R for a ratio. From a previous survey or a census. - Mean total per cluster (X̄) (
mean_per_cluster): a number, above 0; default 10 The average of the clusters’ totals; with the variance above it gives the relative variance of the cluster totals, V²₁ = σ₁²/X̄². - Listing units per cluster (N̄) (
listing_units_per_cluster): a number, at least 2; default 10 How many listing units — households, patients — every cluster holds. - Listing units sampled per cluster (n̄) (
sampled_per_cluster): a number, at least 1; default 5 How many are taken at the second stage from each sampled cluster — fixed beforehand, from costs and the variance components (Levy & Lemeshow §10.1.6). - Variance within clusters (σ₂²) (
variance_within): a number, at least 0; default 1 The variance among the listing units of a cluster, pooled over clusters — σ²₂ₓ, or σ²₂R for a ratio. - Second-stage sum (W) (
second_stage_sum): a number, at least 0 Levy & Lemeshow’s Σ (Nᵢ/nᵢ)((Nᵢ − nᵢ)/(Nᵢ − 1)) Σⱼ (Xᵢⱼ − X̄ᵢ)² over the population’s clusters (relation 10.16), or the corresponding sum of relation 10.17 for a ratio — computed from a listing of every cluster. - Second stage’s share of the relative variance (B) (
second_stage_term), advanced: a number, at least 0 The second stage’s term in the numerator of Levy & Lemeshow’s relations — zero for a one-stage sample. Entered directly only when it was computed elsewhere. - Relative error (ε) (
half_width_target): a number, above 0 and below 1; default 0.1 The fraction of the true value the estimate is to be within, with the confidence stated: 0.10 is within 10%. Levy & Lemeshow’s ε; their “virtual certainty” is a confidence of 0.9973 (z = 3).
Sizes entered when another axis is solved for
- Clusters sampled (m) (
clusters): a whole number, at least 1 Clusters sampled (m). Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Second stage — What happens within each sampled cluster: every listing unit taken (one stage), or a sample of them from clusters of one size or of different sizes.
- One stage: every unit of a sampled cluster: Box 9.4: the second stage adds nothing. (fields ``)
- Two stages, clusters of one size, the form’s default: Relations (10.6)–(10.7). (fields
listing_units_per_cluster,sampled_per_cluster,variance_within) - Two stages, clusters of different sizes: Relations (10.16)–(10.17). (fields
second_stage_sum) - The second stage’s term, entered directly: B in Levy & Lemeshow’s numerator. (fields
second_stage_term)
Modifiers admitted
None.
Published examples it reproduces (4)
Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).
| Source | Example | Solves for | Inputs | Published |
|---|---|---|---|---|
| Levy & Lemeshow 2008, §9.4 (printed p. 254), Box 9.4 | persons over 65 in five housing developments: σ²₁ 6.8 about a mean of 34 a development, the total within 10% with virtual certainty => 2.85, so 3 developments | Precision | alpha = 0.0027; clusters_population = 5; estimate = total_or_mean; half_width_target = 0.1; mean_per_cluster = 34; variance_between = 6.8; second_stage expressed as one_stage |
clusters = 3 ± 0 |
| Levy & Lemeshow 2008, §10.1.5 (printed pp. 289–291), relation (10.6) | patients seen by nurse practitioners: 5 health centres of 3 practitioners, 2 sampled in each, σ²₁ 567.44 about 84.4 a centre, σ²₂ 160.27, the total within 30% at 95% => 3.47, so 4 centres | Precision | alpha = 0.05; clusters_population = 5; estimate = total_or_mean; half_width_target = 0.3; listing_units_per_cluster = 3; mean_per_cluster = 84.4; sampled_per_cluster = 2; variance_between = 567.44; variance_within = 160.27; second_stage expressed as equal_sizes |
clusters = 4 ± 0 |
| Levy & Lemeshow 2008, §10.1.5 (printed p. 291), relation (10.7) | the proportion of those patients referred to a physician, σ²₁R 328.76 and σ²₂R 25.82, within 30% at 95% => 1.88, so 2 centres | Precision | alpha = 0.05; clusters_population = 5; estimate = ratio; half_width_target = 0.3; listing_units_per_cluster = 3; mean_per_cluster = 84.4; sampled_per_cluster = 2; variance_between = 328.76; variance_within = 25.82; second_stage expressed as equal_sizes |
clusters = 2 ± 0 |
| Levy & Lemeshow 2008, §10.2.5 (printed p. 316), relation (10.17) | the proportion of deaths among admissions with life-threatening conditions, σ²₁R 81.39, second-stage sum 0.00064, within 30% with virtual certainty => 1.76, so 2 hospitals | Precision | alpha = 0.0027; clusters_population = 10; estimate = ratio; half_width_target = 0.3; mean_per_cluster = 65.1; second_stage_sum = 0.00064; variance_between = 81.39; second_stage expressed as unequal_sizes |
clusters = 2 ± 0 |
Sources
- Levy PS, Lemeshow S. Sampling of Populations: Methods and Applications. 4th ed. Hoboken: Wiley; 2008. §9.4, §10.1.5 and §10.2.5.
This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →