prop.belowthreshold: Proportions of cases and controls below a threshold of weight...

Description Usage Arguments Value Examples

View source: R/wdists.R

Description

Proportions of cases and controls below a threshold of weight of evidence

Usage

1
prop.belowthreshold(densities, w.threshold)

Arguments

densities

Densities object produced by Wdensities.

w.threshold

Threshold value of weight of evidence (natural logs).

Value

Numeric vector of length 2 listing the proportions of controls and cases with weight of evidence below the given threshold.

Examples

1
2
3
4
data(cleveland)
densities <- with(cleveland, Wdensities(y, posterior.p, prior.p))
w.threshold <- log(4) # threshold Bayes factor of 4
prop.belowthreshold(densities, w.threshold)

wevid documentation built on Sept. 12, 2019, 5:04 p.m.