Functions & Formulae

Each applied formula has its own function page, with a signature, implementations, and tests.

Intracluster correlation of costs or outcomes from variance components and mean squares

c(sigma_b2, sigma_w2, MSB, MSW, m, F_a, F_b) = (rho, rho_hat, rho_L, rho_U)

Maps the variance of a cost or an outcome between and within clusters, or the mean squares of a one-way analysis of variance, to the intracluster correlation coefficient and a confidence interval for it. HE-AS-BINOM-002 states the independence that fails under clustering for a count, and HE-AS-AN-002 asks for cluster-robust standard errors in a Wald interval. The design effect and the effective sample size that follow from rho sit on the Design Effect concept and are not restated here. Incremental net benefit and its standard error in the article's worked example are HE-FM-AN-004 with Cov_CE of 0, and the article's step 4 is the same record with each standard error multiplied by the square root of its design effect (derived), so that step is a citation and not a new formula. Notation follows the Cluster Effect article.

  • Intracluster correlation coefficient from between-cluster and within-cluster variance

    sigma2_t = sigma_b2 + sigma_w2; rho = sigma_b2 / sigma2_t

    Adds the variance between clusters to the variance between individuals within a cluster, and returns the share of the total that lies at the cluster level. A value of 0 means that people in one cluster are no more alike than people in different clusters, and a value of 1 means that all responses within a cluster are identical. The coefficient belongs to one outcome, so costs and QALYs each have their own value. The ratio has the shape of the pooling weights in HE-FM-BSKT-001 and HE-FM-BMA-002, but those denominators hold the sampling variance of a group estimate, which shrinks as the group grows, while sigma_w2 is a variance between individuals and does not.

  • One-way analysis of variance estimator of the intracluster correlation for equal clusters

    sigma_b2_hat = (MSB - MSW) / m; rho_hat = (MSB - MSW) / (MSB + (m - 1) * MSW)

    Turns the two mean squares from a one-way analysis of variance of a cost or outcome by cluster into estimates of the between-cluster variance and of rho in HE-FM-CLUE-001. MSW estimates sigma_w2 directly, and the expected value of MSB is m sigma_b2 + sigma_w2, so the difference divided by m estimates sigma_b2. The estimate rho_hat equals sigma_b2_hat over the sum of sigma_b2_hat and MSW (derived). Killip and colleagues state that calculating rho usually requires a pilot study, and these are the sums such a study needs when its clusters are of equal size. Clusters of unequal size use HE-CF-CLUE-001.

  • F-based confidence interval for the intracluster correlation from a one-way analysis of variance

    F_0 = MSB / MSW; F_L = F_0 / F_a; F_U = F_0 * F_b; rho_L = (F_L - 1) / (F_L + m - 1); rho_U = (F_U - 1) / (F_U + m - 1)

    Converts the ratio of the two mean squares of HE-FM-CLUE-002 into a confidence interval for rho, using two points of the F distribution, which depend on the number of clusters and the cluster size. Shrout and Fleiss print the interval for their one-way Case 1. The width shows how little a small pilot study says about rho. With 4 clusters of 32 in one group the illustrative estimate of 0.017 has limits of about minus 0.0165 and 0.3924, while with 30 clusters of 30 in one group the estimate of 0.05 has limits of about 0.0202 and 0.1095. The lower limit is above 0 exactly when F_0 exceeds F_a, which is the F test that rho differs from zero with an upper tail of alpha / 2 (derived).

This set of formulae 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/concept/cluster-effect/formulae