Skip to content
Prev 178 / 5632 Next

[R-meta] inner-outer-grouping-factor-structure for multiple treatment studies

Dear Wolfgang
first of all, thank you very much for your quick and kind answer. I'm new
in this community and I find your work very useful. I'm sure I will manage
to perform this analysis with your help but for the moment I still have a
few difficulties.

I've been changing the way I'm computing the effect size and I have been
using the standardised mean difference instead of the log ratio of the mean
to be able to use the code from "gleser 2009".  In this code, the
covariance is :
matrix <http://stat.ethz.ch/R-manual/R-devel/library/base/html/matrix.html>(
1/x$n2i[1] + outer
<http://stat.ethz.ch/R-manual/R-devel/library/base/html/outer.html>(x$yi,
x$yi, "*")/(2*x$Ni[1]), nrow
<http://stat.ethz.ch/R-manual/R-devel/library/base/html/nrow.html>=nrow
<http://stat.ethz.ch/R-manual/R-devel/library/base/html/nrow.html>(x), ncol
<http://stat.ethz.ch/R-manual/R-devel/library/base/html/ncol.html>=nrow
<http://stat.ethz.ch/R-manual/R-devel/library/base/html/nrow.html>(x))
where n2i is the control group reused. I used this code because N was equal
for the treatment and reference group. There is only the study from Rhoade
where I'm not sure of the application of this formula because in this case
the treatment and the reference are reused once.
I was able to get the variance-covariance V matrix and I used the
metamodel3 <- rma.mv(yi, ], mods = ~ Land_use_change - 1, random = ~
factor(trial) | article, rho=1/2, data=ma.grass) to fit the model and I get
the error message :







*Error in .ll.rma.mv <http://ll.rma.mv>(opt.res$par, reml = reml, Y = Y, M
= V, A = A, X.fit = X,  :   Final variance-covariance matrix not positive
definite.De plus : Warning messages:1: In rma.mv <http://rma.mv>(yi, V[k,
k], mods = ~Luchange - 1, random = ~factor(trial) |  :  'V' appears to be
not positive definite.2: In rma.mv <http://rma.mv>(yi, V[k, k], mods =
~Luchange - 1, random = ~factor(trial) |  :  Redundant predictors dropped
from the model.*

after some tests restricting the matrix to individual studies, it appears
that the sub-matrix from the study Farle is not positive definite.
Could you give a little more help to solve this problem and to confirm that
the code I used was appropriate?
I would like not dropping this study which is quite important in the
meta-analysis.

Thanks in advance
Vivien


On Thu, Aug 31, 2017 at 2:18 PM, Wolfgang Viechtbauer <
wolfgang.viechtbauer at maastrichtuniversity.nl> wrote: