plotW: plot log case/control density ratio against weight of...

Description Usage Arguments Value Examples

Description

plot log case/control density ratio against weight of evidence as a check that the densities are mathematically consistent

Usage

1
plotW(densities, W)

Arguments

densities

Adjusted densities computed by Wdensities.fromraw.

W

Weight of evidence. (natural logs)

Value

ggpplot of natural log case/control density ratio against weight of evidence (should be a straight line of gradient 1 passing through the origin)

Examples

1
2
3
4
5
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)
plotW(densities.adj, W)

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