Skip to content
Prev 4741 / 5636 Next

[R-meta] multilevel and multivariate model

Filippo, Your code looks right to me. To double check it for yourself, try
increasing K to something much larger and verify that rma.mv() returns
estimates that are very close to the specified parameter values. (This
might take some time to compute because of the vcalc() call, which returns
a square matrix with the same number of rows as dat. If nrow(dat) is large,
then V can get very big.)

Wolfgang, is there a reason that V returns a dense k x k matrix? As far as
I can see, V should always have block diagonal form since the cluster
argument is required. Given that, would it be feasible for vcalc() to
return a Matrix::bdiag (or the metafor equivalent)?

James

On Mon, Jun 26, 2023 at 10:22?AM Filippo Gambarota via R-sig-meta-analysis <
r-sig-meta-analysis at r-project.org> wrote: