Skip to content
Prev 3815 / 5636 Next

[R-meta] possible miscalculation of Cook’s distances

Dear Antonina,

There was no rationale, I just wanted to indicate that there is no bug
in the function (and save myself a tiny bit of time). The default
reestimate = TRUE is certainly to be preferred given that your model
does include random-effects and, as the documentation correctly
mentions, the influence of each effect estimate on the estimates of
heterogeneity and correlation can only be examined, if you set
reestimate = TRUE.

For instance, if you remove the random-effects from your initial model
(res.ml), then, you'll see that the use of reestimate = TRUE or FALSE
has no effect. In both cases, only the effect estimate associated with
study 1, experiment 1 is influential. Thus, this shows that the use of
reestimate = FALSE in your initial model essentially ignored the
influence of each effect estimate on the estimates of heterogeneity.

In models with complex random-effects structure esp. fit to large
datasets, setting reestimate = TRUE would take a good chunk of time.
In such cases, some (myself included) may be tempted to set reestimate
= FALSE hoping that the approximation will be close enough.

Kind regards,
Reza

res.ml2 <- update.rma(res.ml, random = NULL)

cook_with_reest2 <- cooks.distance.rma.mv(res.ml2)
cook_without_reest2 <- cooks.distance.rma.mv(res.ml2, reestimate = FALSE)

plot(cook_with_reest2,type="b")
plot(cook_without_reest2,type="b")

On Fri, Feb 4, 2022 at 12:19 AM Antonina Dolgorukova
<an.dolgorukova at gmail.com> wrote: