Skip to content
Prev 1668 / 5636 Next

[R-meta] Reproducing results using regtest in metafor

Alex,

Looking at the source code for regtest.rma, it looks like my previous
syntax can be simplified even further, to simply:
lm_fit <- lm(yi ~ m.c + sqrt(vi), data = ma.dataset, weights = 1 / vi)
summary(lm_fit)

The random effects structure / weighting scheme used to fit the initial
metaregression is simply disregarded when re-fitting the model. I think
that's reasonable because it forces one to make a coherent assumption about
the structure of the errors in the regression. In contrast, the other
approach involves fitting the first model based on random effects
weighting, and then fitting the Egger regression on the residuals, but
using a *different* weighting scheme. I can't think of any data generating
process where this would be an efficient way to fit the model or a valid
approach for inference. Thus, it would seem preferable to fit the model all
at once, using assumptions that can at least be clearly stated.

James

On Mon, Aug 12, 2019 at 7:34 AM Sutton, Alex (Prof.) <ajs22 at leicester.ac.uk>
wrote:

  
  
Message-ID: <CAFUVuJwoN5FEBrQZYbV0EPyeOahSy=F6smrgJyS4h8ZV9VghkQ@mail.gmail.com>
In-Reply-To: <AM0PR06MB41802BE1038A4CD2C757CA86E8D30@AM0PR06MB4180.eurprd06.prod.outlook.com>