Skip to content
Prev 1466 / 5636 Next

[R-meta] Different outputs by comparing random-effects model with a MLMA without intercept

Dear Wolfgang,

I am sorry for my last question without providing some data. I simulated a
different situation using part of my data set. I found than the average
effect size differed from zero in the subgroup "no" from variable
"potential_sce" using the full data. After exclusion of data related to the
subgroup "yes" from variable "potential_sce" , I conducted a random-effects
MLMA and found that the average effect size did not differ from zero. Which
one of the two approaches would be correct? The files follow on attached.

library(metafor)
library(ape)

### Data
h1=read.csv2('full_data.csv', dec='.')
summary(h1)

h2=read.csv2('data_without_psce.csv', dec='.')
summary(h2)

### Phylogenies and correlations
#tree_full_data
pt1<-read.tree(file=file.choose(), text=NULL, tree.names=NULL, skip=0)

corr1=vcv(pt1, corr=T)

#tree_data_without_psce
pt2<-read.tree(file=file.choose(), text=NULL, tree.names=NULL, skip=0)

corr2=vcv(pt2, corr=T)


### Models
meta1=rma.mv(zf, sezf, mods=~potential_sce-1, random = list (~1|studyID,
~1|speciesID), R=list(speciesID=corr1), data = h1)
meta1

meta2=rma.mv(zf, sezf, random = list (~1|studyID, ~1|speciesID),
R=list(speciesID=corr2), data=h2)
meta2

Best wishes,

Rafael.
__________________________________________________________

Dr. Rafael Rios Moura
*scientia amabilis*

Behavioral Ecologist, Ph.D.
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>


Em seg, 11 de mar de 2019 ?s 05:57, Viechtbauer, Wolfgang (SP) <
wolfgang.viechtbauer at maastrichtuniversity.nl> escreveu:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0001.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: data_without_psce.csv
Type: application/vnd.ms-excel
Size: 13521 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0002.xlb>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree_full_data.tre
Type: application/octet-stream
Size: 1108 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0003.obj>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: full_data.csv
Type: application/vnd.ms-excel
Size: 14340 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0003.xlb>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree_data_without_psce.tre
Type: application/octet-stream
Size: 943 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0004.obj>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: script_model.R
Type: application/octet-stream
Size: 694 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20190313/80a7f8c2/attachment-0005.obj>