In a frequentist framework, the ICC (the proportion of true-score variance) for test-retest or rater reliability comes can be estimated form a mixed model in lme4: fit y ~ 1 + (1 | subject) + (1 | rater) and take the subject variance over the total. A Bayesian version looks easy on the surface (same model in brms), but I’ve hit two things I can’t resolve.
1- it isn’t intuitive to put priors on the SDs of the group-level intercepts. The quantity I have direct beliefs about is the ICC; the group-level variances are more challenging to generate priors for.
2- weakly informative priors on those SDs, especially the same on each, imply a fairly pessimistic prior. For example, if the subject, rater, and residual SDs all get the same half-t(3) prior, I’m saying my prior belief is that the subject should account for about a third of the variance.
I’ve been thinking about the R2D2 parameterization as an analogous problem/solution. The ICC is a similar kind of quantity, so why not put the prior directly on it. However - this is pushing my stats comfort zone - and I’d greatly appreciate some input from folks smarter than me.
My thought is to sample the ICC (theta) with a Beta prior, then sample the rater’s share of whatever variance is left over (psi), with its own Beta prior, and build the variance components from the two. Two-step split of the total variance (ICC first, then rater vs. residual), and I think the likelihood is unchanged.
real<lower=0, upper=1> theta; // ICC(A,1)
real<lower=0, upper=1> psi; // rater share of the non-subject variance
sigma2_s = theta * sigma2_total;
sigma2_r = psi * (1 - theta) * sigma2_total;
sigma2_e = (1 - psi) * (1 - theta) * sigma2_total;
theta ~ beta(theta_a, theta_b);
psi ~ beta(psi_a, psi_b);
Q1: Is this reasonable?
Q2: the two priors I’ve landed on so far from simulation so far are theta ~ Beta(4.2, 1.8) (mode 0.8, concentration 6, mean 0.70) and psi ~ Beta(1.1, 4) (mean about 0.2). The theta choice mattered less than I expected; a weaker Beta(1.8, 1.2) behaved almost the same. For psi I’d prefer a spike at zero, but a Beta with a < 1 made the sampler diverge badly when raters are few, > 1 was a compromise. The cost is that it pulls psi toward 0.2 and never really says “no rater effect.” Perhaps this is a reasonable prior, since the rater effect is probably never truly zero.