[R-meta] Subgroup analysis, R package meta
margot sanders
@@nder@@m @ending from hotm@il@com
Thu Nov 29 21:04:15 CET 2018
I would like to insert a subgroup analysis in the following script for a forest plot in R.
library(meta)
mean.e<-c(-0.4, 0.5,1 ,2)
sd.e<-c(1.63, 2.2, 3, 1)
n.e<-c(29,10, 15, 4)
mean.c<-c(0,0,0,0)
sd.c<-c(0.0001, 0.0001,0.0001,0.0001)
n.c<-c(1000, 1000, 1000, 1000)
studlab<-c("Author a", "Author b", "Author c", "Author d")
meta_nrs<-metacont(n.e,mean.e,sd.e,n.c,mean.c,sd.c,studlab, comb.fixed=F)
print(meta_nrs)
forest.meta(meta_nrs, col.diamond="black", col.diamond.lines="transparent", col.random="transparent")
Does anybody know how to insert a subgroup analysis? The subgroup analysis should present Q- and I2 tests for heterogeneity, as the script already does for the overall results.
Thank you in advance.
Kind regards,
Margot Sanders
[[alternative HTML version deleted]]
More information about the R-sig-meta-analysis
mailing list