funnel: Create a Funnel Plot

Description Usage Arguments Details Examples

Description

This function allows you to create a funnel plot using a vector of effect sizes and a vector of their corresponding sampling variances.

Usage

1
funnel(effect, v, type = "se", flip = FALSE)

Arguments

effect

a vector of meta-analytic effect sizes

v

a vector of sampling variances

type

v for variance or se for standard error; defaults to standard error

flip

FALSE (default) for a horizontal plot; TRUE for a vertical plot

Details

This funnel plot, by default, plots the effect sizes on the y-axis and the measure of study size (either variance or standard error) on the x-axis. If no asymmetry is present, the plot should resemble a horizontal funnel.

Users can choose either standard error (default) or sampling variance as a measure of study size. The choice is mostly arbitrary. In both cases, however, v must be a vector of variances, the same as that required by weightfunct. The conversion to standard error is automatic.

Examples

1
2
3
4
5
6
7
## Not run: 
# Funnel plot using standard error (default):
funnel(effect, v)
# Funnel plot using sampling variance:
funnel(effect, v, type='v')

## End(Not run)

weightr documentation built on July 7, 2019, 1:03 a.m.

Related to funnel in weightr...