Re: [R] Metafor -can't calculate heterogeneity with non-positive sampling variances

2014-08-28 Thread Michael Dewey
(STAT) [wolfgang.viechtba...@maastrichtuniversity.nl] Sent: 27 August 2014 17:30 To: Owen, Branwen; r-help@r-project.org Subject: RE: [R] Metafor -can't calculate heterogeneity with non-positive sampling variances The warning message pretty much says it: When one of the variances is zero, then the I^

Re: [R] Metafor -can't calculate heterogeneity with non-positive sampling variances

2014-08-27 Thread Owen, Branwen
wen; r-help@r-project.org Subject: RE: [R] Metafor -can't calculate heterogeneity with non-positive sampling variances The warning message pretty much says it: When one of the variances is zero, then the I^2 statistic (and various other things) cannot be computed, at least if one sticks to the u

Re: [R] Metafor -can't calculate heterogeneity with non-positive sampling variances

2014-08-27 Thread Viechtbauer Wolfgang (STAT)
^2, but to consider if vi=0 is really sensible. Best, Wolfgang > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Owen, Branwen > Sent: Wednesday, August 27, 2014 13:48 > To: r-help@r-project.org > Subject: [R]

[R] Metafor -can't calculate heterogeneity with non-positive sampling variances

2014-08-27 Thread Owen, Branwen
Hi, I'm doing a meta-analysis in metafor. All is fine except when there are 0s in the values that i'm pooling, then i get a pooled estimate but not the I2 that i am also interested in. for example: summary(rma.1<-rma(yi,vi,data=mix,method="ML",knha=F,weighted=F,intercept=T)) (where yi are the st