weightLine: Function to plot estimated weight functions

Description Usage Arguments Author(s) References See Also Examples

View source: R/weightLine.r

Description

This function faclitiates plotting of estimated weight functions according to the method in Dear and Begg (1992) or its non-increasing version described in Rufibach (2010).

Usage

1
weightLine(p, w, col0, lwd0, lty0 = 1, type = c("pval", "empirical")[1])

Arguments

p

Vector of p-values.

w

Vector of estimated weights, as outputted by DearBegg or DearBeggMonotone.

col0

Color of line that is drawn.

lwd0

Line width.

lty0

Line type.

type

Should weights be drawn versus original p-values (type == "pval") or versus the empirical distribution of the p-values (type === "empirical").

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

References

Dear, K.B.G. and Begg, C.B. (1992). An Approach for Assessing Publication Bias Prior to Performing a Meta-Analysis. Statist. Sci., 7(2), 237–245.

Rufibach, K. (2011). Selection Models with Monotone Weight Functions in Meta-Analysis. Biom. J., 53(4), 689–704.

See Also

This function is used in weightLine.

Examples

1
# This function is used in the help file for the function DearBegg().

Example output

Loading required package: DEoptim
Loading required package: parallel

DEoptim package
Differential Evolution algorithm in R
Authors: D. Ardia, K. Mullen, B. Peterson and J. Ulrich

selectMeta documentation built on May 2, 2019, 4:22 a.m.