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

Description Usage Arguments Value Examples

Description

Proportions of cases and controls below a given threshold of W (natural logs)

Usage

1
prop.belowthreshold(densities, w.threshold)

Arguments

densities

Adjusted densities computed by Wdensities.fromraw.

w.threshold

Threshold value of weight of evidence (natural logs).

Value

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

Examples

1
2
3
4
5
6
data("cleveland") # load example dataset
W <- with(cleveland, weightsofevidence(posterior.p, prior.p))
densities.unadj <- Wdensities.unadjusted(cleveland$y, W)
densities.adj <- Wdensities.fromraw(densities.unadj)
w.threshold <- log(4) # threshold Bayes factor of 4
prop.belowthreshold(densities.adj, w.threshold)

pmckeigue/wevid documentation built on May 29, 2019, 5:41 a.m.