[R-meta] Subgroup analysis, R package meta

Guido Schwarzer @c @ending from imbi@uni-freiburg@de
Fri Nov 30 07:11:06 CET 2018


Dear Margot,

Starting with your R object meta_nrs, the following R code conducts a 
subgroup analysis for a categorical variable.

blinding <- c("adequate", "inadequate", "inadequate", "adequate")

meta_nrs_blind <- update(meta_nrs, byvar = blinding)
meta_nrs_blind

forest(meta_nrs_blind,
        col.diamond="black", col.diamond.lines="transparent",
        col.random="transparent",
        col.by = "black")

forest(meta_nrs_blind,
        col.diamond="black", col.diamond.lines="transparent",
        col.random="transparent",
        col.by = "black",
        test.overall = TRUE,
        test.subgroup = TRUE)

Best wishes, Guido

P.S. Note, you do not have to explicitly call forest.meta(). This is 
done automatically by the forest-commands above as meta_nrs and 
meta_nrs_blind are of class "meta". Similar for the print-command, i.e., 
the R commands meta_nrs_blind and print(meta_nrs_blind) generate the 
same printout.



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