A cluster sandwich calculation
Advanced
Topic: Marginal models, and two responses at once · more questions on this topic
An intercept-only model has three independent clusters, each with two observations: , and . Compute the fitted mean, the bread , the sum of squared cluster residual totals , and the uncorrected sandwich variance . Why should the usual large-cluster normal approximation be treated cautiously?
Worked answer
The fitted mean is . Cluster residual totals are , so and . The variance is . With only three independent clusters the asymptotic normal approximation for inference can be poor.