TriaLab Power Studio · Method
Log-rank test in a parallel cluster-randomised trial
Sizes a cluster trial with a time-to-event outcome: Freedman’s events inflated by the design effect, and the participants that yield them. The design is stated by the proportions surviving at the end of the trial, and the intracluster correlation is the one of the censoring indicator.
Also known as: cluster randomised trial, CRT, logrank, log-rank, survival, time to event, hazard ratio, clustered survival, Xie Waksman.
Maturity
Validated: 42 published examples from 2 independent publications (PASS; Xie & Waksman 2003) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — No source on disk sizes a confidence interval for a hazard ratio in a cluster-randomized design, so it is not offered rather than offered unchecked.
- Assurance: not offered — Switch on the assurance modifier: a prior on the effect turns the power into an expected power over the prior, and the size can then be solved for a target assurance (O’Hagan, Stevens & Campbell 2005).
- Duration: not offered — The design is stated by the proportions surviving at the end of the trial rather than by an accrual and follow-up schedule, so there is no calendar time to solve for. That schedule is
survival-logrank-exponential’s, and no source on disk combines it with clustering.
Size axes:
- Clusters per arm (control arm when allocation is unequal) (
clusters_per_arm), Count - Average participants per cluster (
cluster_size), 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
- Proportion surviving in the control clusters (S₁) (
survival_control): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent The proportion of control participants still event-free at the end of the trial. It fixes how many people it takes to observe an event, so it is required whichever way the effect is entered. - Hazard ratio to detect (HR = h₂/h₁) (
hazard_ratio): a number, above 0; default 0.737 Below 1 when the treatment lowers the hazard. Under exponential survival it is ln(S₂)/ln(S₁), so it and the treated survival probability are one number written two ways. - Proportion surviving in the treated clusters (S₂) (
survival_treatment): a number, above 0 and below 1; entered as proportion (0-1) or percent The proportion of treated participants still event-free at the end of the trial; the hazard ratio follows from it and S₁. - Intracluster correlation of the censoring indicator (ρ) (
icc): a number, at least 0 and below 1; default 0.05; typically 0 to 0.3 (intracluster correlations reported for event indicators) The correlation between whether two participants in the same cluster have the event — not the correlation of their survival times. Xie and Waksman define it on the censoring indicator, and a value taken from a continuous-outcome ICC table is answering a different question.
Sizes entered when another axis is solved for
- Clusters per arm (control arm when allocation is unequal) (
clusters_per_arm): a whole number, at least 1 Clusters per arm (control arm when allocation is unequal). Leave empty to solve for it; fill it in to solve for the other size instead. - Average participants per cluster (
cluster_size): a number, above 0; default 10 Average participants per cluster. Leave empty to solve for it; fill it in to solve for the other size instead.
Ways to express an input
Effect size — The treatment effect as a hazard ratio, or as the proportion surviving it implies.
- Hazard ratio, the form’s default: Enter HR directly. (fields
hazard_ratio) - Proportion surviving: Enter S₂; the hazard ratio is ln(S₂)/ln(S₁). (fields
survival_treatment)
Modifiers admitted
posterior_error: Bayesian error rates (posterior error approach)multiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)allocation: Allocationdropout: Dropoutassurance: Assurance (prior on the design)
Published examples it reproduces (42)
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 |
|---|---|---|---|---|
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 5 clusters of 4 per arm => power 0.0732 | Power | alpha = 0.05; cluster_size = 4; clusters_per_arm = 5; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.0732 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 5 clusters of 8 per arm => power 0.0848 | Power | alpha = 0.05; cluster_size = 8; clusters_per_arm = 5; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.0848 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 10 clusters of 4 per arm => power 0.1072 | Power | alpha = 0.05; cluster_size = 4; clusters_per_arm = 10; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.1072 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 10 clusters of 8 per arm => power 0.1291 | Power | alpha = 0.05; cluster_size = 8; clusters_per_arm = 10; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.1291 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 15 clusters of 4 per arm => power 0.14 | Power | alpha = 0.05; cluster_size = 4; clusters_per_arm = 15; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.14 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 15 clusters of 8 per arm => power 0.1726 | Power | alpha = 0.05; cluster_size = 8; clusters_per_arm = 15; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.1726 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 20 clusters of 4 per arm => power 0.1726 | Power | alpha = 0.05; cluster_size = 4; clusters_per_arm = 20; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.1726 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 20 clusters of 8 per arm => power 0.2157 | Power | alpha = 0.05; cluster_size = 8; clusters_per_arm = 20; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.2157 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 40 clusters of 4 per arm => power 0.3004 | Power | alpha = 0.05; cluster_size = 4; clusters_per_arm = 40; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.3004 ± 0.00005 |
| PASS chapter 699, Example 1 (printed p. 699-4) | S1 0.50, S2 0.60 (HR 0.737), ICC 0.20, 40 clusters of 8 per arm => power 0.3817 | Power | alpha = 0.05; cluster_size = 8; clusters_per_arm = 40; icc = 0.2; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival |
power = 0.3817 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0 => power 0.9021, which Xie & Waksman print as 0.9 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.9021 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0.2 => power 0.8026, which Xie & Waksman print as 0.8 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.2; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.8026 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0.4 => power 0.7090, which Xie & Waksman print as 0.71 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.4; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.709 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0.6 => power 0.6291, which Xie & Waksman print as 0.63 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.6; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.6291 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0.8 => power 0.5628, which Xie & Waksman print as 0.56 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.8; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.5628 ± 0.00005 |
| PASS chapter 699, Example 2 (printed p. 699-6), reproducing Xie & Waksman 2003 p. 2840 | S1 0.223, S2 0.129, 100 clusters per arm of an average 2.7, ICC 0.9 => power 0.5341, which Xie & Waksman print as 0.53 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.9; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.5341 ± 0.00005 |
| PASS chapter 699, Example 3 (printed p. 699-8), reproducing Gao et al. 2015 p. 49 | S1 0.75, S2 0.60, clusters of 2, ICC 0.05, 80% power => 82 clusters per group | Sample size | alpha = 0.05; cluster_size = 2; icc = 0.05; power_target = 0.8; survival_control = 0.75; survival_treatment = 0.6; effect expressed as survival |
clusters_per_arm = 82 ± 0 |
| PASS chapter 699, Example 3 (printed p. 699-8), reproducing Gao et al. 2015 p. 49 | S1 0.75, S2 0.60, clusters of 2, ICC 0.1, 80% power => 86 clusters per group | Sample size | alpha = 0.05; cluster_size = 2; icc = 0.1; power_target = 0.8; survival_control = 0.75; survival_treatment = 0.6; effect expressed as survival |
clusters_per_arm = 86 ± 0 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0, two-sided 0.05 => computed power 0.63 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.63 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.2, two-sided 0.05 => computed power 0.51 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0.2; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.51 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.4, two-sided 0.05 => computed power 0.43 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0.4; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.43 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.6, two-sided 0.05 => computed power 0.37 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0.6; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.37 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.8, two-sided 0.05 => computed power 0.32 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0.8; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.32 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 100 subjects (50 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.9, two-sided 0.05 => computed power 0.3 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 50; icc = 0.9; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.3 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0, two-sided 0.05 => computed power 0.9 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.9 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.2, two-sided 0.05 => computed power 0.8 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.2; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.8 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.4, two-sided 0.05 => computed power 0.71 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.4; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.71 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.6, two-sided 0.05 => computed power 0.63 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.6; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.63 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.8, two-sided 0.05 => computed power 0.56 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.8; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.56 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 200 subjects (100 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.9, two-sided 0.05 => computed power 0.53 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 100; icc = 0.9; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.53 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0, two-sided 0.05 => computed power 0.98 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.98 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.2, two-sided 0.05 => computed power 0.93 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0.2; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.93 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.4, two-sided 0.05 => computed power 0.87 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0.4; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.87 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.6, two-sided 0.05 => computed power 0.8 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0.6; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.8 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.8, two-sided 0.05 => computed power 0.74 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0.8; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.74 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 300 subjects (150 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.9, two-sided 0.05 => computed power 0.71 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 150; icc = 0.9; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.71 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0, two-sided 0.05 => computed power 1 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 1 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.2, two-sided 0.05 => computed power 0.98 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0.2; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.98 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.4, two-sided 0.05 => computed power 0.94 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0.4; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.94 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.6, two-sided 0.05 => computed power 0.9 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0.6; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.9 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.8, two-sided 0.05 => computed power 0.85 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0.8; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.85 ± 0.005 |
| Xie & Waksman 2003, Table I (p. 2840) | 400 subjects (200 per arm), clusters of an average 2.7, S1 0.223, S2 0.129, ICC 0.9, two-sided 0.05 => computed power 0.82 | Power | alpha = 0.05; cluster_size = 2.7; clusters_per_arm = 200; icc = 0.9; survival_control = 0.223; survival_treatment = 0.129; effect expressed as survival |
power = 0.82 ± 0.005 |
Sources
- NCSS, LLC. PASS 2026 documentation, chapter 699: Logrank Tests in a Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026.
- Xie T, Waksman J. Design and sample size estimation in clinical trials with clustered survival times as the primary endpoint. Stat Med. 2003;22(18):2835-2846.
- Gao F, Earnest A, Matchar DB, Campbell MJ, Machin D. Sample size calculations for the design of cluster randomized trials: a summary of methodology. Contemp Clin Trials. 2015;42:41-50.
- Freedman LS. Tables of the number of patients required in clinical trials using the logrank test. Stat Med. 1982;1(2):121-129.
- Hemming K, Kasza J, Hooper R, Forbes A, Taljaard M. A tutorial on sample size calculation for multiple-period cluster randomized parallel, cross-over and stepped-wedge trials using the Shiny CRT Calculator. Int J Epidemiol. 2020;49(3):979-995. Small-sample corrections, for a trial with few clusters.
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 →