Skip to content

[R-meta] Residuals for random effect

1 message · Lukas Dylewski

#
Dear All,

I would like to calculate residuals for a random effect.  Could I calculate
the residual values after subtracting the predicted influence of the
study?
I would like to get the same residuals value for each study level (in the
model below coded pub).

My model:
res1 <- rma.mv(yi, vi, mods = ~ logmass +
I(logmass^2),random=~1|pub,data=metaan, method="REML")

Regards
Lukasz