Why Cluster Size Matters
In a shared-frailty model, members of a cluster share an unobserved risk factor. Conditional on that factor, their event histories may be independent; after averaging over the factor, their outcomes are associated. Cluster size therefore affects more than the number of records in a likelihood. It also affects how much within-cluster dependence the data can reveal. A large cluster supplies many pairs of members whose outcomes can reflect the same latent risk, whereas a small cluster supplies few such pairs.
The effect is not simply “large clusters count more.” Their likelihood contributions depend on all members’ event and censoring information jointly, and their influence on estimated heterogeneity depends on the model, follow-up, and observed outcomes. The comparisons below make these distinctions explicit.
For the standard likelihood, assume the cluster sizes are fixed by design or are noninformative for the frailties and event processes, conditional on modeled covariates. Assume censoring is noninformative given the modeled information and frailty. These assumptions matter: if clusters are larger because their frailties or event processes affect cluster membership or observation, conditioning on size alone may select a nonrepresentative set of clusters.
How Size Enters an Integrated Cluster Likelihood
For member \(i\) in cluster \(j\), let \(\lambda_{0}(t)\) be the baseline hazard, \(x_{ij}\) the covariate vector, and \(\beta\) the regression coefficient vector. Conditional on \(Z_j\), the hazard is \(Z_j\lambda_{0}(t)\exp(x_{ij}^{\mathsf T}\beta)\). Let \(t_{ij}\) be the observed time, \(\delta_{ij}\) indicate an event (\(\delta_{ij}=1\)) rather than censoring (\(\delta_{ij}=0\)), and \(H_{ij}\) be the cumulative hazard through \(t_{ij}\) without the frailty multiplier. Define \(D_j=\sum_{i=1}^{m_j}\delta_{ij}\) and \(A_j=\sum_{i=1}^{m_j}H_{ij}\).
Conditional independence gives a product of member likelihood contributions at a fixed value of \(Z_j\). But the members share the same frailty, so the cluster likelihood is obtained by integrating that product over the frailty distribution. With \(Z_j\sim\operatorname{Gamma}(1/\theta,1/\theta)\), where the arguments are shape and rate, its density has mean 1 and variance \(\theta\). The resulting integrated contribution is:
Here the member-specific hazard factors account for the observed events, while \(D_j\) and \(A_j\) summarize the event count and total cumulative hazard exposure relevant to the frailty integral. Thus \(m_j\) affects the likelihood through the number and pattern of observations and through the sums \(D_j\) and \(A_j\); there is no universal multiplier equal to cluster size. In particular, integrating each member’s contribution separately would replace the shared latent \(Z_j\) with separate frailties and would describe a different model.
Worked Example: Likelihood of an All-Censored Cluster
Suppose there are no covariates, \(\theta=0.25\), and each member has the same cumulative hazard \(H_{ij}=0.5\) through the observation time. Consider a cluster in which every member is censored event-free at that time. For this calculation, censoring is assumed noninformative, so each member contributes its event-free survival conditional on frailty. Then \(D_j=0\), \(A_j=0.5m_j\), and the integrated cluster likelihood contribution is \((1+\theta A_j)^{-1/\theta}\).
For a cluster of size 2, \(A_j=1\), so:
For a cluster of size 8, \(A_j=4\), so:
These are probabilities of all members being event-free under the specified model and exposure, not comparable scores for clusters with different numbers of members. For comparison, a single member’s marginal event-free probability is \((1+0.25\times0.5)^{-4}=1.125^{-4}\approx0.6243\). Raising this marginal probability to the cluster size would incorrectly treat the members as independent after frailty integration. The shared-frailty calculation integrates the joint conditional likelihood once per cluster.
Why Large Clusters Can Reveal Heterogeneity
A useful way to see the connection between size and heterogeneity is to consider a common follow-up time and the binary indicator \(Y_{ij}\) that member \(i\) has had an event by that time. Let \(\Lambda\) denote each member’s cumulative hazard without frailty. Given \(Z_j\), the event probability is \(1-\exp(-Z_j\Lambda)\). The gamma frailty’s Laplace transform is \(E[\exp(-sZ_j)]=(1+\theta s)^{-1/\theta}\). Consequently, the marginal event probability is \(p=1-S\), where \(S=(1+\theta\Lambda)^{-1/\theta}\).
For two distinct members in the same cluster, the probability that both remain event-free is \(S_2=(1+2\theta\Lambda)^{-1/\theta}\). Since the covariance of two event indicators equals the covariance of their event-free indicators, their covariance is \(c=S_2-S^2\). The count of events \(N_j=\sum_iY_{ij}\) therefore has variance:
The first term is the variance that would arise from independent members with marginal event probability \(p\). The second term is the contribution from the \(m_j(m_j-1)\) ordered pairs of distinct members. Under positive shared gamma frailty, \(c\) is nonnegative: members in a cluster with high latent risk tend to have more events together, while members in a cluster with low latent risk tend to have fewer.
Worked Example: Comparing Event-Count Variability in Small and Large Clusters
Continue with \(\theta=0.25\), and now take \(\Lambda=0.5\) at a common follow-up time. The assumptions for the calculation are a shared gamma frailty, conditionally independent member outcomes, and identical exposure for all members. First calculate the marginal event-free probability and event probability:
For two members in the same cluster:
For a size-2 cluster, the event-count variance is:
For a size-8 cluster, it is:
If the size-8 members were independent with the same marginal event probability, their count variance would instead be \(8p(1-p)\approx1.8764\). The difference, about \(1.1119\), is the shared-frailty covariance contribution. This calculation illustrates why large clusters can expose heterogeneity more clearly: they contain more within-cluster pairs. It does not mean that every size-8 cluster provides a fixed amount of information or that the variance itself is an estimator of \(\theta\).
Unequal Sizes and the Balance of Information
For a fixed total number of members, the number of within-cluster pairs depends on how those members are grouped. Consider 16 members observed at the same exposure as in the preceding example. If they form eight clusters of size 2, there are \(8\binom{2}{2}=8\) unordered within-cluster pairs. If they form two clusters of size 8, there are \(2\binom{8}{2}=56\) such pairs. The latter design has seven times as many pair opportunities to express shared dependence.
Worked Example: Same Number of Members, Different Clusterings
Assume the same \(\theta=0.25\), \(\Lambda=0.5\), and independent frailties across clusters. Compare 16 members arranged as eight size-2 clusters with 16 members arranged as two size-8 clusters. The expected total number of events is \(16p\approx16(0.3757049)=6.0113\) in either arrangement. But variances differ because pairs within a cluster share frailty.
With eight size-2 clusters, the total variance is the sum of cluster variances:
With two size-8 clusters:
The independent-member component is the same, approximately \(16p(1-p)=3.7528\), but the shared-dependence component is larger with two big clusters: \(112c\approx2.2238\), rather than \(16c\approx0.3177\). This is a model-based illustration of the leverage large clusters can have on dependence information. It is not a claim that the larger-cluster design is always preferable: it has fewer independent cluster frailties, and a few unusual clusters can have substantial influence.
A related descriptive summary of size imbalance is \(m_{\mathrm{eff}}=(\sum_jm_j)^2/\sum_jm_j^2\), sometimes called an effective cluster count for size weighting. It equals the number of clusters when all sizes are equal and decreases when a few clusters dominate membership. It is not a replacement for a likelihood-based information calculation, but it warns that the raw number of clusters can overstate how evenly the data are distributed across clusters.
Assumptions, Diagnostics, and Alternatives
Unequal sizes are not themselves a violation of the shared-frailty model. The central modeling assumptions remain the frailty distribution, the conditional hazard structure, and conditional independence of members given frailty and covariates. The standard likelihood also needs a defensible treatment of cluster size: if size is fixed or noninformative, one can condition on the observed sizes. If size is associated with latent risk or outcomes, an analysis that ignores that relationship can misrepresent the population distribution of frailties. The size-generating process may then need to be modeled, or conclusions should be qualified as conditional on observed cluster sizes.
Useful checks include examining the distribution of \(m_j\), the number of clusters at each size, and whether a small number of large clusters dominate total membership. Compare fitted results with and without the largest clusters as a sensitivity analysis, not as a method for choosing the preferred result. Also examine whether cluster size is associated with observed covariates, follow-up, or event burden; such patterns may signal design differences, informative size, or model misspecification. A fitted frailty variance near zero does not prove that sizes are harmless, and apparent excess event-count variability alone does not establish that a gamma frailty is correct.
Alternative approaches answer different questions. A cluster-robust variance estimator can adjust uncertainty for dependence without specifying a frailty distribution, but it does not directly estimate a latent heterogeneity variance or provide the same conditional hazard model. A model with separate member-specific frailties describes additional individual heterogeneity, rather than only the shared dependence. A fixed-effects or cluster-stratified analysis conditions on cluster-specific features but does not estimate a distribution of shared frailties in the same way. These approaches should not be treated as interchangeable corrections for unequal size.
The practical limitation is that many members in one cluster do not create many independent clusters. Large clusters can yield substantial information about within-cluster association, but estimates of the population distribution of frailties still depend on the number and representativeness of clusters. If only a few clusters are very large, the fitted heterogeneity may be sensitive to those clusters and to the frailty distributional assumption. Unequal sizes should therefore be reflected in the likelihood and the interpretation, rather than summarized by total sample size alone.
Common Pitfall
Check Your Understanding
Answer each question using the shared gamma-frailty setup above. Solutions are included after the questions.
- Why must the conditional member likelihoods be multiplied before integrating a shared cluster frailty?
- For a cluster of size \(m_j\), how many ordered covariance terms occur in the variance of its event count?
- With 12 members, compare the number of unordered within-cluster pairs for six clusters of size 2 and two clusters of size 6.
- Name one assumption that could fail if cluster size is informative, and give one diagnostic or sensitivity analysis.
Solutions. (1) The members share the same latent \(Z_j\); integrating each contribution separately would assign separate frailties and change the model. (2) There are \(m_j(m_j-1)\) ordered terms, one for each distinct ordered pair. (3) Six size-2 clusters give \(6\binom{2}{2}=6\) unordered pairs; two size-6 clusters give \(2\binom{6}{2}=30\). (4) The assumption that sizes are noninformative for frailty or event processes could fail. Examine size associations with observed event burden and covariates, and assess sensitivity to excluding or downweighting the largest clusters while clearly treating that as a sensitivity analysis.