[R] differences between meat and metafor packages

Viechtbauer, Wolfgang (SP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Mon Feb 25 20:34:26 CET 2019


The second argument (called 'vi') in rma() is for the variances. If you have SEs, then use the 'sei' argument:

res <- rma(HR, sei=SE, data=a)

Best,
Wolfgang

-----Original Message-----
From: R-help [mailto:r-help-bounces using r-project.org] On Behalf Of greg holly
Sent: Monday, 25 February, 2019 18:40
To: r-help mailing list
Subject: [R] differences between meat and metafor packages

Hi all;

I have got different results (CI and Q value for heterogeneity, tau) on the
same data when I run meta and metafor for hazard ratio with a random
effects model. The basic programs for both are given below. What can cause?

Regards,
Greg

Metafor
 res <- rma(HR, SE, data=a)
predict(res, transf=exp)

Meta
 metagen(HR, SE, sm="HR", data=a)



More information about the R-help mailing list