Learn R Programming

altmeta (version 2.0)

metapb: Detect and Quantify Publication Bias

Description

Performs the regression test and calculates skewness for detecting and quantifying publication bias.

Usage

metapb(y, s2, model)

Arguments

y
a numeric vector indicating the observed effect sizes in the collected studies; they are assumed to be normally distributed.
s2
a numeric vector indicating the within-study variances.
model
a characher string specifying the fixed-effect ("FE") or random-effects ("RE") model. If not specified, this function uses the $Q$ statistic to test for heterogeneity: if the $p$-value is smaller than 0.05, model is

Value

  • This function returns a list containing measures of publication bias, their 95% confidence intervals, and $p$-values.

References

Egger M, Smith GD, Schneider M, and Minder C (1997). "Bias in meta-analysis detected by a simple, graphical test." BMJ, 315(7109), 629--634.

Examples

Run this code
data("slf")
attach(slf)
metapb(y, s2)
detach(slf)

data("ha")
attach(ha)
metapb(y, s2)
detach(ha)

data("lcj")
attach(lcj)
metapb(y, s2)
detach(lcj)

Run the code above in your browser using DataLab