Skip to content
Prev 3254 / 5632 Next

[R-meta] Clarification on ranef.rma.mv()

You can just do:

sds <- svd(chol(fm3$G))$d / sqrt(fm3$sigma2)
sds^2 / sum(sds^2)

to get those 'Proportion of Variance' values. In fact, the scaling by sqrt(fm3$sigma2) is irrelevant then, so this is the same as:

sds <- svd(chol(fm3$G))$d
sds^2 / sum(sds^2)

Or you can do the same as you did in those helper functions you wrote.

I find it a bit strange to talk of the contribution of the intercept and slope variances to their sum (since they are on different scales), but maybe this makes sense when using a singular value decomposition of the Cholesky factorization of G instead of just doing summary(princomp(fm$G)) directly.

Best,
Wolfgang