[R-meta] How to do a graph with all variables and interactions
Rafael Rios
b|or@|@e|rm @end|ng |rom gm@||@com
Mon May 20 07:48:24 CEST 2019
Dear Wolfgang and All,
How can I graph all variables and interactions for a mixed-effects
meta-analysis? I am providing an example bellow in wich part of the
variables and an interaction can be vizualised in the forest plot. In
addition, what are the most approppriate analyzes to investigate potential
effects of outliers in more complex models, such as a multilevel
meta-analysis controlling for phylogenetic non-independence? In case of
using Cook's distance, what should be the value of cut-off value?
library(metafor)
dat <- dat.konstantopoulos2011
dat$var1=c("A","B")
dat$var2=c("C","C","D", "D")
head(dat)
res <- rma.mv(yi, vi, mods=~var1*var2, random=list(~1|school,~1|year),
data=dat)
summary(res)
preds=predict(res,newmods=rbind(c(0,0,0),c(1,0,0),c(0,1,0),c(0,0,1)))
forest(preds$pred, sei=preds$se, slab=c("intercept", "var1B", "var2D",
"var1B:var2D"))
[image: image.png]
Best wishes,
Rafael.
__________________________________________________________
Dr. Rafael Rios Moura
*scientia amabilis*
Behavioral Ecologist, D.Sc.
Postdoctoral Researcher
Universidade Estadual de Campinas (UNICAMP)
Campinas, São Paulo, Brazil
ORCID: http://orcid.org/0000-0002-7911-4734
Currículo Lattes: http://lattes.cnpq.br/4264357546465157
Research Gate: https://www.researchgate.net/profile/Rafael_Rios_Moura2
<http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4244908A8>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190520/9553baf2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7019 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190520/9553baf2/attachment.png>
More information about the R-sig-meta-analysis
mailing list