Learn R Programming

meta (version 2.3-0)

metareg: Meta-regression

Description

Meta-regression for objects of class meta. This is a wrapper function for the R function rma.uni in the R package metafor (Viechtbauer 2010).

Usage

metareg(formula, data, method.tau=data$method.tau)

Arguments

formula
A formula object.
data
An object of class meta.
method.tau
A character string indicating which method is used to estimate the between-study variance tau-squared. Either "DL", "REML", "ML", "HS", "SJ", "HE", or "EB"

Value

  • An object of class c("rma.uni","rma"). Please look at the help page of R function rma.uni for more details.

Details

This R function is a wrapper function for R function rma.uni in the R package metafor (Viechtbauer 2010), i.e. the function metareg can only be used if the R package metafor is installed.

References

Viechtbauer W (2010), Conducting Meta-Analyses in R with the Metafor Package. Journal of Statistical Software, 36, 1--48.

See Also

summary.meta, metagen

Examples

Run this code
data(Fleiss93cont)
meta1 <- metacont(n.e, mean.e, sd.e, n.c, mean.c, sd.c, data=Fleiss93cont, sm="MD")
meta1$grp <- c(1,2,1,1,2)
metareg(~grp, data=meta1)

Run the code above in your browser using DataLab