[R-meta] Robust function when rows have NA values

Viechtbauer Wolfgang (SP) wolfgang.viechtbauer at maastrichtuniversity.nl
Tue Aug 8 20:52:44 CEST 2017

Could you provide fully reproducible examples to illustrate the problems you are running into? robust() should work just fine even if there are missings and I^2 is also computed correctly. For example:

dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
dat$yi[1] <- NA
res <- rma(yi, vi, data=dat)
robust(res, dat$trial)


Wolfgang Viechtbauer, Ph.D., Statistician | Department of Psychiatry and    
Neuropsychology | Maastricht University | P.O. Box 616 (VIJV1) | 6200 MD    
Maastricht, The Netherlands | +31 (43) 388-4170 | http://www.wvbauer.com    

-----Original Message-----
From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces at r-project.org] On Behalf Of Martineau, Roger
Sent: Tuesday, August 08, 2017 20:19
To: r-sig-meta-analysis at r-project.org
Subject: [R-meta] Robust function when rows have NA values

Dear metafor users,

I can run the cook.distance ( ) function when rows have NA, but the calculation of I2 statistic and the robust ( ) function do not work when rows have NA values.

Is it possible to correct ?

Thanks in advance,

Roger ☺

Roger Martineau, mv Ph.D.
Centre de recherche et de développement
sur le bovin laitier et le porc
Agriculture et agroalimentaire Canada/Agriculture and Agri-Food Canada
Téléphone/Telephone: 819-780-7319
Télécopieur/Facsimile: 819-564-5507
2000, Rue Collège / 2000, College Street
Sherbrooke (Québec)  J1M 0C8
roger.martineau at agr.gc.ca<mailto:roger.martineau at agr.gc.ca>

More information about the R-sig-meta-analysis mailing list