Skip to contents

meta_begg() tests for funnel plot asymmetry with Kendall's rank correlation between the standardised effect sizes and their sampling variances (Begg and Mazumdar, 1994).

Usage

meta_begg(.data, yi = .yi, vi = .vi, exact = TRUE)

Arguments

.data

A data frame, <meta_es> or <meta_fit> from meta_pool().

yi, vi

<data-masking> Columns holding the effect sizes and sampling variances. Default to .yi and .vi.

exact

Use the exact null distribution of Kendall's tau when there are no ties? Passed to stats::cor.test().

Value

A one row tibble with Kendall's tau (estimate), the test statistic and p.value.

References

Begg, C. B. and Mazumdar, M. (1994). Operating characteristics of a rank correlation test for publication bias. Biometrics, 50(4), 1088-1101. doi:10.2307/2533446

Examples

bcg <- meta_effect_size(bcg_trials, "RR",
  event1 = tpos, n1 = tpos + tneg, event2 = cpos, n2 = cpos + cneg
)
meta_begg(bcg)
#> # A tibble: 1 × 4
#>   test  estimate statistic p.value
#>   <chr>    <dbl>     <dbl>   <dbl>
#> 1 Begg    0.0256        40   0.952