Learn R Programming

baggr (version 0.8)

selection: Relative publication probabilities of a baggr model

Description

Extracts the posterior draws (or summaries) of the selection-model parameters that describe the relative publication probabilities across |z|-intervals.

Usage

selection(bg, summary = TRUE, interval = 0.95)

Value

If summary = FALSE, a matrix of posterior draws where each column corresponds to a |z|-interval. Otherwise, a matrix with one row per interval and columns containing the mean and bounds of the uncertainty interval.

Arguments

bg

a baggr model fitted with a selection-enabled likelihood (currently model = "rubin").

summary

logical; if TRUE, returns summary statistics (mean and the uncertainty interval defined by interval).

interval

uncertainty interval width (numeric between 0 and 1), used only when summary = TRUE.